Skip to content

Commit 3ffbb15

Browse files
MeAkibalan-agius4
andauthored
Update packages/schematics/angular/web-worker/index_spec.ts
Co-authored-by: Alan Agius <alan.agius4@gmail.com>
1 parent 68d986a commit 3ffbb15

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎packages/schematics/angular/web-worker/index_spec.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@ describe('Web Worker Schematic', () => {
9696
});
9797

9898
it('should add snippet to the component file and not a server configuration file', async () => {
99-
const serverAppTree = await schematicRunner.runSchematic('server', { project: 'bar' }, appTree);
100-
const tree = await schematicRunner.runSchematic('web-worker', defaultOptions, serverAppTree);
99+
appTree.create('/projects/bar/src/app/app.config.server.ts', 'export const config = {};
100+
');
101+
const tree = await schematicRunner.runSchematic('web-worker', defaultOptions, appTree);
101102

102103
const appComponent = tree.readContent('/projects/bar/src/app/app.ts');
103104
expect(appComponent).toContain(`new Worker(new URL('./${defaultOptions.name}.worker`);

0 commit comments

Comments
 (0)