"Fossies" - the Fresh Open Source Software Archive  

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

differential_loading_spec.ts  (angular-cli-12.0.3):differential_loading_spec.ts  (angular-cli-12.0.4)
skipping to change at line 34 skipping to change at line 34
}); });
architect = (await createArchitect(host.root())).architect; architect = (await createArchitect(host.root())).architect;
}); });
afterEach(async () => host.restore().toPromise()); afterEach(async () => host.restore().toPromise());
it( it(
'emits all the neccessary files for default configuration', 'emits all the neccessary files for default configuration',
async () => { async () => {
const { files } = await browserBuild(architect, host, target); const { files } = await browserBuild(architect, host, target, { sourceMap: true });
const expectedOutputs = [ const expectedOutputs = [
'favicon.ico', 'favicon.ico',
'index.html', 'index.html',
'main-es2017.js', 'main-es2017.js',
'main-es2017.js.map', 'main-es2017.js.map',
'main-es5.js', 'main-es5.js',
'main-es5.js.map', 'main-es5.js.map',
skipping to change at line 74 skipping to change at line 74
expect(Object.keys(files)).toEqual(jasmine.arrayWithExactContents(expected Outputs)); expect(Object.keys(files)).toEqual(jasmine.arrayWithExactContents(expected Outputs));
}, },
TEST_TIMEOUT, TEST_TIMEOUT,
); );
it( it(
'emits all the neccessary files for target of ESNext', 'emits all the neccessary files for target of ESNext',
async () => { async () => {
host.replaceInFile('tsconfig.json', '"target": "es2017",', `"target": "esn ext",`); host.replaceInFile('tsconfig.json', '"target": "es2017",', `"target": "esn ext",`);
const { files } = await browserBuild(architect, host, target); const { files } = await browserBuild(architect, host, target, { sourceMap:
true });
const expectedOutputs = [ const expectedOutputs = [
'favicon.ico', 'favicon.ico',
'index.html', 'index.html',
'main-esnext.js', 'main-esnext.js',
'main-esnext.js.map', 'main-esnext.js.map',
'main-es5.js', 'main-es5.js',
'main-es5.js.map', 'main-es5.js.map',
'polyfills-esnext.js', 'polyfills-esnext.js',
skipping to change at line 112 skipping to change at line 111
] as PathFragment[]; ] as PathFragment[];
expect(Object.keys(files)).toEqual(jasmine.arrayWithExactContents(expected Outputs)); expect(Object.keys(files)).toEqual(jasmine.arrayWithExactContents(expected Outputs));
}, },
TEST_TIMEOUT, TEST_TIMEOUT,
); );
it( it(
'deactivates differential loading for watch mode', 'deactivates differential loading for watch mode',
async () => { async () => {
const { files } = await browserBuild(architect, host, target, { watch: tru const { files } = await browserBuild(architect, host, target, {
e }); watch: true,
sourceMap: true,
});
const expectedOutputs = [ const expectedOutputs = [
'favicon.ico', 'favicon.ico',
'index.html', 'index.html',
'main-es2017.js', 'main-es2017.js',
'main-es2017.js.map', 'main-es2017.js.map',
'polyfills-es2017.js', 'polyfills-es2017.js',
'polyfills-es2017.js.map', 'polyfills-es2017.js.map',
 End of changes. 3 change blocks. 
5 lines changed or deleted 7 lines changed or added

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