[Pkg-javascript-commits] [node-tap] 47/186: boost unit test self-coverage back to 100

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 1 16:40:42 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-tap.

commit 60b7541de24be7797e68fad811acadb69601bc2b
Author: isaacs <i at izs.me>
Date:   Mon Oct 30 00:32:13 2017 -0700

    boost unit test self-coverage back to 100
---
 unit/spawn.js | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/unit/spawn.js b/unit/spawn.js
index 38d513c..8c673f1 100644
--- a/unit/spawn.js
+++ b/unit/spawn.js
@@ -122,11 +122,6 @@ not ok 1 - timeout!
     })
 
     t.test('pre-call', t => {
-      const cp = require('child_process')
-      const spawn = cp.spawn
-      const poop = new Error('poop error')
-      cp.spawn = () => { throw poop }
-      t.teardown(_ => cp.spawn = spawn)
       const s = new Spawn({
         command: node,
         args: [ file, 'timeout' ],
@@ -140,6 +135,9 @@ not ok 1 - timeout!
   })
 }
 
+// Ignore this because a lot of these cases involve
+// using a SIGKILL before nyc can write coverage
+/* istanbul ignore next */
 switch (process.argv[2]) {
   case 'ok':
     t.pass('this is fine')

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-tap.git



More information about the Pkg-javascript-commits mailing list