"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/angular_devkit/core/src/experimental/jobs/simple-scheduler_spec.ts" between
angular-cli-12.0.3.tar.gz and angular-cli-12.0.4.tar.gz

About: Angular CLI is a command line interface for Angular.

simple-scheduler_spec.ts  (angular-cli-12.0.3):simple-scheduler_spec.ts  (angular-cli-12.0.4)
skipping to change at line 105 skipping to change at line 105
await scheduler.schedule('add', [1, 2, 3, 4]).output.toPromise(); await scheduler.schedule('add', [1, 2, 3, 4]).output.toPromise();
try { try {
await scheduler.schedule('add', ['1', 2, 3, 4]).output.toPromise(); await scheduler.schedule('add', ['1', 2, 3, 4]).output.toPromise();
expect(true).toBe(false); expect(true).toBe(false);
} catch (e) { } catch (e) {
// TODO: enable this when https://github.com/bazelbuild/rules_typescript/c ommit/37807e2c4 // TODO: enable this when https://github.com/bazelbuild/rules_typescript/c ommit/37807e2c4
// is released, otherwise this breaks because bazel downgrade to ES5 which does not support // is released, otherwise this breaks because bazel downgrade to ES5 which does not support
// extending Error. // extending Error.
// expect(e instanceof JobInboundMessageSchemaValidationError).toBe(true); // expect(e instanceof JobInboundMessageSchemaValidationError).toBe(true);
expect(e.message).toMatch(/"\[0\]".*number/); expect(e.message).toMatch(/"\/0" must be number/);
} }
}); });
it('validates outputs', async () => { it('validates outputs', async () => {
registry.register( registry.register(
'add', 'add',
createJobHandler(() => 'hello world'), createJobHandler(() => 'hello world'),
{ {
output: { type: 'number' }, output: { type: 'number' },
}, },
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)