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 fee2fd2
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions test/lib/cmd/cov.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,13 @@ describe('test/lib/cmd/cov.test.js', () => {
if (!process.env.NYC_ROOT_ID) assertCoverage(cwd);
});

it('should exit when not test files', function* () {
it('should exit when not test files', done => {
mm(process.env, 'NYC_CWD', cwd);
const child = coffee.fork(eggBin, [ 'cov', 'test/**/*.nth.js' ], { cwd })
coffee.fork(eggBin, [ 'cov', 'test/**/*.nth.js' ], { cwd })
// .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);
.expect('stdout', /No test files found/)
.expect('code', 0)
.end(done);
});

it('should hotfixSpawnWrap success on mock windows', function* () {
Expand Down

0 comments on commit fee2fd2

Please sign in to comment.