Skip to content

Commit

Permalink
chore(test): add test to verify --skip-commit for new projects (angul…
Browse files Browse the repository at this point in the history
  • Loading branch information
Brocco authored and MRHarrison committed Feb 9, 2017
1 parent ab2a395 commit 4352a22
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/e2e/tests/commands/new/new-skip-commit.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import {ng} from '../../../utils/process';
import {createProject} from '../../../utils/project';
import {expectToFail} from '../../../utils/utils';
import {expectGitToBeClean} from '../../../utils/git';


export default function() {
return Promise.resolve()
.then(() => createProject('new-project', '--skip-commit'))
.then(() => expectToFail(() => expectGitToBeClean()))

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

0 comments on commit 4352a22

Please sign in to comment.