File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -75,10 +75,16 @@ in [node-tap](https://github.com/isaacs/node-tap).
7575var test = require('tape')
7676```
7777
78- ## test(name, cb)
78+ ## test([ name] , [ opts ] , cb)
7979
80- Create a new test with an optional ` name ` string. ` cb(t) ` fires with the new
81- test object ` t ` once all preceeding tests have finished. Tests execute serially.
80+ Create a new test with an optional ` name ` string and optional ` opts ` object.
81+ ` cb(t) ` fires with the new test object ` t ` once all preceeding tests have
82+ finished. Tests execute serially.
83+
84+ Available ` opts ` options are:
85+ - opts.skip = true/false. See test.skip.
86+ - opts.timeout = 500. Set a timeout for the test, after which it will fail.
87+ See test.timeoutAfter.
8288
8389If you forget to ` t.plan() ` out how many assertions you are going to run and you
8490don't call ` t.end() ` explicitly, your test will hang.
You can’t perform that action at this time.
0 commit comments