Skip to content

Commit 27a3651

Browse files
committed
chore(new): add e2e test for ng new --routing
1 parent e6ae588 commit 27a3651

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import * as path from 'path';
2+
import {ng} from '../../../utils/process';;
3+
import {getGlobalVariable} from '../../../utils/env';
4+
5+
export default function() {
6+
return Promise.resolve()
7+
.then(() => process.chdir(getGlobalVariable('tmp-root')))
8+
.then(() => ng('new', 'routing-project', '--routing'))
9+
.then(() => process.chdir(path.join('routing-project')))
10+
11+
// Try to run the unit tests.
12+
.then(() => ng('test', '--single-run'));
13+
}

0 commit comments

Comments
 (0)