Skip to content

Commit 4352a22

Browse files
BroccoMRHarrison
authored andcommitted
chore(test): add test to verify --skip-commit for new projects (angular#3775)
1 parent ab2a395 commit 4352a22

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import {ng} from '../../../utils/process';
2+
import {createProject} from '../../../utils/project';
3+
import {expectToFail} from '../../../utils/utils';
4+
import {expectGitToBeClean} from '../../../utils/git';
5+
6+
7+
export default function() {
8+
return Promise.resolve()
9+
.then(() => createProject('new-project', '--skip-commit'))
10+
.then(() => expectToFail(() => expectGitToBeClean()))
11+
12+
// Try to run the unit tests.
13+
.then(() => ng('test', '--single-run'));
14+
}

0 commit comments

Comments
 (0)