"Fossies" - the Fresh Open Source Software Archive  

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

base_spec.ts  (angular-cli-12.0.3):base_spec.ts  (angular-cli-12.0.4)
skipping to change at line 149 skipping to change at line 149
const fileName = join(outputPath, 'main.js'); const fileName = join(outputPath, 'main.js');
const content = virtualFs.fileBufferToString(host.scopedSync().read(no rmalize(fileName))); const content = virtualFs.fileBufferToString(host.scopedSync().read(no rmalize(fileName)));
expect(content).toMatch(/AppServerModule\.╔Ámod/); expect(content).toMatch(/AppServerModule\.╔Ámod/);
}), }),
take(1), take(1),
) )
.toPromise(); .toPromise();
await run.stop(); await run.stop();
}); });
it('should not try to resolve web-worker', async () => {
host.writeMultipleFiles({
'src/app/app.worker.ts': `
/// <reference lib="webworker" />
const foo: string = 'hello world';
addEventListener('message', ({ data }) => {
postMessage(foo);
});
`,
'src/main.server.ts': `
if (typeof Worker !== 'undefined') {
const worker = new Worker(new URL('./app/app.worker', import.meta.url)
, { type: 'module' });
worker.onmessage = ({ data }) => {
console.log('page got message:', data);
};
worker.postMessage('hello');
}
`,
});
const run = await architect.scheduleTarget(target);
const output = (await run.result) as ServerBuilderOutput;
expect(output.success).toBe(true);
await run.stop();
});
}); });
 End of changes. 1 change blocks. 
0 lines changed or deleted 28 lines changed or added

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