Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function test(message, settings, testFn){
if(arguments.length < 3){
testFn = settings;
settings = {};
}
settings.timeout = 2500;
tape.apply(null, Array.prototype.slice.call(arguments, 0, -1).concat([function(t){
testFn.apply(this, arguments);
t._plan++;
setTimeout(function(){
t.pass();
}, 2000);
}]));
}
var test = function () {
reset();
tape.apply(tape, arguments);
};
test.only = function () {