0.1.1 • Published 11 years ago

timeout-tape v0.1.1

Weekly downloads
5
License
Apache 2.0
Repository
github
Last release
11 years ago

timeout-tape

Adds timeouts to tape.

You shouldn't need this most of the time.

example

var test = require('tape');
var timeout_tape = require('timeout_tape');

test = timeout_tape(test, 3000);

test('all fine', function(t) {
  t.pass("won't timeout");
  t.end();
});

test('will timeout', function(t) {
  setTimeout(function() {
    t.end(); // we'll timeout before we get here
  }, 99999);
});
0.1.1

11 years ago

0.0.0

11 years ago