"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/angular_devkit/build_angular/src/browser/specs/scripts-array_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.

scripts-array_spec.ts  (angular-cli-12.0.3):scripts-array_spec.ts  (angular-cli-12.0.4)
skipping to change at line 177 skipping to change at line 177
architect, architect,
host, host,
target, target,
{ {
scripts: getScriptsOption(), scripts: getScriptsOption(),
} as {}, } as {},
{ logger }, { logger },
); );
const joinedLogs = logs.join('\n'); const joinedLogs = logs.join('\n');
expect(joinedLogs).toMatch(/lazy-script.+69 bytes/); expect(joinedLogs).toMatch(/lazy-script.+\d+ bytes/);
expect(joinedLogs).toMatch(/renamed-script.+78 bytes/); expect(joinedLogs).toMatch(/renamed-script.+\d+ bytes/);
expect(joinedLogs).toMatch(/renamed-lazy-script.+88 bytes/); expect(joinedLogs).toMatch(/renamed-lazy-script.+\d+ bytes/);
expect(joinedLogs).not.toContain('Lazy Chunks'); expect(joinedLogs).not.toContain('Lazy Chunks');
}); });
it(`should error when a script doesn't exist`, async () => { it(`should error when a script doesn't exist`, async () => {
await expectAsync( await expectAsync(
browserBuild(architect, host, target, { browserBuild(architect, host, target, {
scripts: ['./invalid.js'], scripts: ['./invalid.js'],
}), }),
).toBeRejectedWithError(`Script file ./invalid.js does not exist.`); ).toBeRejectedWithError(`Script file ./invalid.js does not exist.`);
}); });
 End of changes. 1 change blocks. 
3 lines changed or deleted 3 lines changed or added

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