Skip to content

Commit

Permalink
chore(test): add failing build test (angular#2366)
Browse files Browse the repository at this point in the history
Add test for angular#2360
  • Loading branch information
filipesilva authored and Danny Blue committed Oct 3, 2016
1 parent 13c6e98 commit ff8241b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/e2e/tests/build/fail-build.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import {ng} from '../../utils/process';
import {expectToFail} from '../../utils/utils';
import {deleteFile} from '../../utils/fs';

export default function() {
return deleteFile('src/app/app.component.ts')
// This is supposed to fail since there's a missing file
.then(() => expectToFail(() => ng('build')));
}

0 comments on commit ff8241b

Please sign in to comment.