NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/tape/test/timeout.js
2023-09-14 14:47:11 +08:00

16 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();
});