UNPKG

285 BJavaScriptView Raw
1var test = require('../');
2var current = 0;
3
4test(function (t) {
5 t.equal(current++, 0);
6 t.end();
7});
8test(function (t) {
9 t.plan(1);
10 setTimeout(function () {
11 t.equal(current++, 1);
12 }, 100);
13});
14test(function (t) {
15 t.equal(current++, 2);
16 t.end();
17});