Skip to content

Commit

Permalink
test: Update app-shell test
Browse files Browse the repository at this point in the history
  • Loading branch information
Brocco authored and hansl committed Dec 4, 2017
1 parent f84742d commit 091ab2c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/e2e/tests/build/build-app-shell-with-schematic.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ng, npm } from '../../utils/process';
import { expectFileToMatch } from '../../utils/fs';
import { expectFileToMatch, appendToFile } from '../../utils/fs';
import { getGlobalVariable } from '../../utils/env';
import { expectToFail } from '../../utils/utils';
import { updateJsonFile } from '../../utils/project';
Expand All @@ -25,6 +25,10 @@ export default function () {


return Promise.resolve()
.then(() => expectToFail(() => {
return ng('generate', 'appShell', 'name', '--universal-app', 'universal');
})
.then(() => appendToFile('src/app/app.component.html', '<router-outlet></router-outlet>'))
.then(() => ng('generate', 'appShell', 'name', '--universal-app', 'universal'))
.then(() => updateJsonFile('package.json', packageJson => {
const dependencies = packageJson['dependencies'];
Expand Down

0 comments on commit 091ab2c

Please sign in to comment.