How to use the tape.apply function in tape

To help you get started, we’ve selected a few tape examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github MauriceButler / simple-ajax / tests / index.js View on Github external
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);
    }]));
}
github AmpersandJS / ampersand-state / test / full.js View on Github external
var test = function () {
    reset();
    tape.apply(tape, arguments);
};
test.only = function () {