mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 18:43:42 +08:00
test: fix e2e following rendering changes in universal
It should be more resilient to those changes in the future.
This commit is contained in:
parent
7fcc157a61
commit
6fb3ea12b7
@ -136,7 +136,7 @@ export default function () {
|
|||||||
`))
|
`))
|
||||||
.then(() => exec(normalize('node'), 'index.js'))
|
.then(() => exec(normalize('node'), 'index.js'))
|
||||||
.then(() => expectFileToMatch('dist/test-project-server/index.html',
|
.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',
|
.then(() => expectFileToMatch('./dist/test-project-server/main.js',
|
||||||
/require\(["']@angular\/[^"']*["']\)/))
|
/require\(["']@angular\/[^"']*["']\)/))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user