Skip to content

Commit 03d839f

Browse files
alan-agius4filipesilva
authored andcommitted
test(@angular-devkit/build-angular): update tests to reflect new output of critters
The tests have been re-introduced in the code base via a revert #21899
1 parent 2764915 commit 03d839f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/angular_devkit/build_angular/src/builders/browser/tests/options/inline-critical_spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => {
5555
.content.toContain(
5656
`<link rel="stylesheet" href="styles.css" media="print" onload="this.media='all'">`,
5757
);
58-
harness.expectFile('dist/index.html').content.toContain(`body{color:#000;}`);
58+
harness.expectFile('dist/index.html').content.toContain(`body{color:#000}`);
5959
});
6060

6161
it(`should extract critical css when 'optimization' is true`, async () => {
@@ -73,7 +73,7 @@ describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => {
7373
.content.toContain(
7474
`<link rel="stylesheet" href="styles.css" media="print" onload="this.media='all'">`,
7575
);
76-
harness.expectFile('dist/index.html').content.toContain(`body{color:#000;}`);
76+
harness.expectFile('dist/index.html').content.toContain(`body{color:#000}`);
7777
});
7878

7979
it(`should not extract critical css when 'optimization' is false`, async () => {

0 commit comments

Comments
 (0)