Skip to content

Commit 091ab2c

Browse files
Broccohansl
authored andcommitted
test: Update app-shell test
1 parent f84742d commit 091ab2c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/e2e/tests/build/build-app-shell-with-schematic.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ng, npm } from '../../utils/process';
2-
import { expectFileToMatch } from '../../utils/fs';
2+
import { expectFileToMatch, appendToFile } from '../../utils/fs';
33
import { getGlobalVariable } from '../../utils/env';
44
import { expectToFail } from '../../utils/utils';
55
import { updateJsonFile } from '../../utils/project';
@@ -25,6 +25,10 @@ export default function () {
2525

2626

2727
return Promise.resolve()
28+
.then(() => expectToFail(() => {
29+
return ng('generate', 'appShell', 'name', '--universal-app', 'universal');
30+
})
31+
.then(() => appendToFile('src/app/app.component.html', '<router-outlet></router-outlet>'))
2832
.then(() => ng('generate', 'appShell', 'name', '--universal-app', 'universal'))
2933
.then(() => updateJsonFile('package.json', packageJson => {
3034
const dependencies = packageJson['dependencies'];

0 commit comments

Comments
 (0)