UNPKG

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