diff --git a/test/lib/cmd/cov.test.js b/test/lib/cmd/cov.test.js index ca9e59fc..afd89588 100644 --- a/test/lib/cmd/cov.test.js +++ b/test/lib/cmd/cov.test.js @@ -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);