test: fix e2e following rendering changes in universal

It should be more resilient to those changes in the future.
This commit is contained in:
Hans 2018-06-06 15:46:57 -07:00
parent 7fcc157a61
commit 6fb3ea12b7

View File

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