Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
atian25 committed Jun 29, 2018
1 parent 8423119 commit 5267018
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/lib/cmd/cov.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,9 @@ describe('test/lib/cmd/cov.test.js', () => {
it('should exit when not test files', function* () {
mm(process.env, 'NYC_CWD', cwd);
const child = coffee.fork(eggBin, [ 'cov', 'test/**/*.nth.js' ], { cwd })
// .debug()
.debug()
.expect('stdout', /No test files found/);

// only test on npm run test
if (!process.env.NYC_ROOT_ID) {
child.expect('stdout', /Statements {3}: 80% \( 4[\/|\\]5 \)/);
}

yield child.expect('code', 0).end();
// only test on npm run test
if (!process.env.NYC_ROOT_ID) assertCoverage(cwd);
Expand Down

0 comments on commit 5267018

Please sign in to comment.