Skip to content

Commit fbf56f5

Browse files
committed
ignore 'false' in t.test() args
This allows turning off a test by putting a ! in front of the name.
1 parent 114635c commit fbf56f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/parse-test-args.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ module.exports = function (name_, extra_, cb_, defaultName) {
3232
if (name === undefined)
3333
name = null
3434
cb = arg
35+
} else if (arg === false) {
36+
// it's handy while developing to put a ! in front of a
37+
// function to temporarily make a test TODO
38+
continue
3539
} else if (type !== 'undefined')
3640
throw new TypeError('unknown argument passed to parseTestArgs: ' + type)
3741
}

0 commit comments

Comments
 (0)