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 );
@@ -114,13 +114,13 @@ var test = require('tape')
114
114
115
115
## test([ name] , [ opts] , cb)
116
116
117
- Create a new test with an optional ` name ` string and optional ` opts ` object.
117
+ Create a new test with an optional ` name ` string and optional ` opts ` object.
118
118
` cb(t) ` fires with the new test object ` t ` once all preceeding tests have
119
119
finished. Tests execute serially.
120
120
121
121
Available ` opts ` options are:
122
122
- opts.skip = true/false. See test.skip.
123
- - opts.timeout = 500. Set a timeout for the test, after which it will fail.
123
+ - opts.timeout = 500. Set a timeout for the test, after which it will fail.
124
124
See test.timeoutAfter.
125
125
126
126
If you forget to ` t.plan() ` out how many assertions you are going to run and you
@@ -154,7 +154,7 @@ Generate a passing assertion with a message `msg`.
154
154
Automatically timeout the test after X ms.
155
155
156
156
## t.skip(msg)
157
-
157
+
158
158
Generate an assertion that will be skipped over.
159
159
160
160
## t.ok(value, msg)
You can’t perform that action at this time.
0 commit comments