blob: 729f775ff5094cec7d1f6fdde29c247a5607f14f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
var test = require("tap").test;
var nextTick = require('./');
test('should work', function (t) {
t.plan(5);
nextTick(function (a) {
t.ok(a);
nextTick(function (thing) {
t.equals(thing, 7);
}, 7);
}, true);
nextTick(function (a, b, c) {
t.equals(a, 'step');
t.equals(b, 3);
t.equals(c, 'profit');
}, 'step', 3, 'profit');
});
|