UNPKG

273 BJavaScriptView Raw
1var test = require('../');
2var ran = 0;
3
4test('timeout', function (t) {
5 t.pass('this should run');
6 ran++;
7 setTimeout(function () {
8 t.end();
9 }, 100);
10});
11
12test('should still run', { timeout: 50 }, function (t) {
13 t.equal(ran, 1);
14 t.end();
15});