diff --git a/tests/legacy-cli/e2e/tests/generate/component/component-module-export.ts b/tests/legacy-cli/e2e/tests/generate/component/component-module-export.ts index dbe45583f172..4c2b2e89d8c5 100644 --- a/tests/legacy-cli/e2e/tests/generate/component/component-module-export.ts +++ b/tests/legacy-cli/e2e/tests/generate/component/component-module-export.ts @@ -7,7 +7,7 @@ export default function() { const modulePath = join('src', 'app', 'app.module.ts'); return ng('generate', 'component', 'test-component', '--export') - .then(() => expectFileToMatch(modulePath, /exports: \[\n(\s*) TestComponentComponent\n\1\]/)) + .then(() => expectFileToMatch(modulePath, /exports: \[\r?\n(\s*) TestComponentComponent\r?\n\1\]/)) // Try to run the unit tests. .then(() => ng('test', '--watch=false')); diff --git a/tests/legacy-cli/e2e/tests/generate/directive/directive-module-export.ts b/tests/legacy-cli/e2e/tests/generate/directive/directive-module-export.ts index ecc34dfaecc4..376b5cb762f5 100644 --- a/tests/legacy-cli/e2e/tests/generate/directive/directive-module-export.ts +++ b/tests/legacy-cli/e2e/tests/generate/directive/directive-module-export.ts @@ -7,7 +7,7 @@ export default function() { const modulePath = join('src', 'app', 'app.module.ts'); return ng('generate', 'directive', 'test-directive', '--export') - .then(() => expectFileToMatch(modulePath, /exports: \[\n(\s*) TestDirectiveDirective\n\1\]/)) + .then(() => expectFileToMatch(modulePath, /exports: \[\r?\n(\s*) TestDirectiveDirective\r?\n\1\]/)) // Try to run the unit tests. .then(() => ng('test', '--watch=false')); diff --git a/tests/legacy-cli/e2e/tests/generate/pipe/pipe-module-export.ts b/tests/legacy-cli/e2e/tests/generate/pipe/pipe-module-export.ts index fc82781d97fb..4773b2b5e231 100644 --- a/tests/legacy-cli/e2e/tests/generate/pipe/pipe-module-export.ts +++ b/tests/legacy-cli/e2e/tests/generate/pipe/pipe-module-export.ts @@ -7,7 +7,7 @@ export default function() { const modulePath = join('src', 'app', 'app.module.ts'); return ng('generate', 'pipe', 'test-pipe', '--export') - .then(() => expectFileToMatch(modulePath, /exports: \[\n(\s*) TestPipePipe\n\1\]/)) + .then(() => expectFileToMatch(modulePath, /exports: \[\r?\n(\s*) TestPipePipe\r?\n\1\]/)) // Try to run the unit tests. .then(() => ng('test', '--watch=false'));