Skip to content

Commit 441a740

Browse files
committed
More tests
1 parent f34b900 commit 441a740

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

test/run.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
var test = require('tape')
2+
var run = require('..').run
3+
4+
test('run', function(t) {
5+
t.plan(3)
6+
run([
7+
function () {
8+
t.ok(true)
9+
},
10+
function () {
11+
process.nextTick(function () {
12+
t.ok(true)
13+
})
14+
},
15+
function () {
16+
return new Promise(function (resolve) {
17+
process.nextTick(function () {
18+
t.ok(true)
19+
resolve()
20+
})
21+
})
22+
},
23+
])
24+
})
25+

0 commit comments

Comments
 (0)