Skip to content

Commit 20a5509

Browse files
committed
test: reduce dependence on exact webpack optmizations
1 parent 4d78fff commit 20a5509

File tree

1 file changed

+5
-1
lines changed
  • packages/angular_devkit/build_angular/src/builders/browser/specs

1 file changed

+5
-1
lines changed

packages/angular_devkit/build_angular/src/builders/browser/specs/svg_spec.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ describe('Browser Builder allow svg', () => {
5757
host.scopedSync().read(join(outputPath, 'main.js')),
5858
);
5959

60-
expect(content).toContain('ɵɵnamespaceSVG');
60+
// Verify that the svg contents are present in the main bundle,
61+
// e.g. as template instructions.
62+
expect(content).toContain('Hello World');
63+
64+
// Verify that the svg contents are *not* present as a separate file.
6165
expect(host.scopedSync().exists(normalize('dist/app.component.svg'))).toBe(
6266
false,
6367
'should not copy app.component.svg to dist',

0 commit comments

Comments
 (0)