coronamap/node_modules/tape/test/timeout.js
2020-06-14 00:00:00 -07:00

15 lines
273 B
JavaScript

var test = require('../');
var ran = 0;
test('timeout', function (t) {
t.pass('this should run');
ran++;
setTimeout(function () {
t.end();
}, 100);
});
test('should still run', { timeout: 50 }, function (t) {
t.equal(ran, 1);
t.end();
});