File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ var test = require('tape');
15
15
16
16
test (' timing test' , function (t ) {
17
17
t .plan (2 );
18
-
18
+
19
19
t .equal (typeof Date .now , ' function' );
20
20
var start = Date .now ();
21
-
21
+
22
22
setTimeout (function () {
23
23
t .equal (Date .now () - start, 100 );
24
24
}, 100 );
@@ -116,13 +116,13 @@ var test = require('tape')
116
116
117
117
## test([ name] , [ opts] , cb)
118
118
119
- Create a new test with an optional ` name ` string and optional ` opts ` object.
119
+ Create a new test with an optional ` name ` string and optional ` opts ` object.
120
120
` cb(t) ` fires with the new test object ` t ` once all preceeding tests have
121
121
finished. Tests execute serially.
122
122
123
123
Available ` opts ` options are:
124
124
- opts.skip = true/false. See test.skip.
125
- - opts.timeout = 500. Set a timeout for the test, after which it will fail.
125
+ - opts.timeout = 500. Set a timeout for the test, after which it will fail.
126
126
See test.timeoutAfter.
127
127
128
128
If you forget to ` t.plan() ` out how many assertions you are going to run and you
@@ -156,7 +156,7 @@ Generate a passing assertion with a message `msg`.
156
156
Automatically timeout the test after X ms.
157
157
158
158
## t.skip(msg)
159
-
159
+
160
160
Generate an assertion that will be skipped over.
161
161
162
162
## t.ok(value, msg)
You can’t perform that action at this time.
0 commit comments