UNPKG

npm

Version:

a package manager for JavaScript

18 lines (16 loc) 367 B
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'); });