From 526701836d75b82fd6c2bed780a703e643eca3ae Mon Sep 17 00:00:00 2001 From: TZ Date: Fri, 29 Jun 2018 10:07:39 +0800 Subject: [PATCH] f --- test/lib/cmd/cov.test.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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);