Skip to content

Commit

Permalink
chore(new): add e2e test for ng new --routing
Browse files Browse the repository at this point in the history
  • Loading branch information
Meligy committed Dec 1, 2016
1 parent e1b6ae2 commit d9afc7e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/e2e/tests/commands/new/new-routing.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import * as path from 'path';
import {ng} from '../../../utils/process';;
import {getGlobalVariable} from '../../../utils/env';

export default function() {
return Promise.resolve()
.then(() => process.chdir(getGlobalVariable('tmp-root')))
.then(() => ng('new', 'routing-project', '--routing'))
.then(() => process.chdir(path.join('routing-project')))

// Try to run the unit tests.
.then(() => ng('test', '--single-run'));
}

0 comments on commit d9afc7e

Please sign in to comment.