Skip to content

Commit df406f9

Browse files
hanslfilipesilva
authored andcommitted
test: fix e2e following rendering changes in universal
It should be more resilient to those changes in the future.
1 parent 1a67546 commit df406f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/legacy-cli/e2e/tests/build/platform-server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export default function () {
136136
`))
137137
.then(() => exec(normalize('node'), 'index.js'))
138138
.then(() => expectFileToMatch('dist/test-project-server/index.html',
139-
new RegExp('<h2 _ngcontent-c0="">Here are some links to help you start: </h2>')))
139+
/<h2.*>Here are some links to help you start: <\/h2>/))
140140
.then(() => expectFileToMatch('./dist/test-project-server/main.js',
141141
/require\(["']@angular\/[^"']*["']\)/))
142142

0 commit comments

Comments
 (0)