Skip to content

Commit

Permalink
ignore 'false' in t.test() args
Browse files Browse the repository at this point in the history
This allows turning off a test by putting a ! in front of the name.
  • Loading branch information
isaacs committed Feb 2, 2017
1 parent 114635c commit fbf56f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/parse-test-args.js
Expand Up @@ -32,6 +32,10 @@ module.exports = function (name_, extra_, cb_, defaultName) {
if (name === undefined)
name = null
cb = arg
} else if (arg === false) {
// it's handy while developing to put a ! in front of a
// function to temporarily make a test TODO
continue
} else if (type !== 'undefined')
throw new TypeError('unknown argument passed to parseTestArgs: ' + type)
}
Expand Down

0 comments on commit fbf56f5

Please sign in to comment.