1 var test = require("tap").test;
2 var nextTick = require('./');
4 test('should work', function (t) {
6 nextTick(function (a) {
8 nextTick(function (thing) {
12 nextTick(function (a, b, c) {
15 t.equals(c, 'profit');
16 }, 'step', 3, 'profit');
19 test('correct number of arguments', function (t) {
21 nextTick(function () {
22 t.equals(2, arguments.length, 'correct number');