Commit project
This commit is contained in:
parent
28471965a0
commit
3ac017a5ad
1030 changed files with 94062 additions and 0 deletions
24
node_modules/process-nextick-args/test.js
generated
vendored
Normal file
24
node_modules/process-nextick-args/test.js
generated
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
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');
|
||||
});
|
||||
|
||||
test('correct number of arguments', function (t) {
|
||||
t.plan(1);
|
||||
nextTick(function () {
|
||||
t.equals(2, arguments.length, 'correct number');
|
||||
}, 1, 2);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue