UNPKG

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