blue-tape

Tape test runner with promise support

npm install blue-tape
10 downloads in the last week
16 downloads in the last month

blue-tape

Tape with promise support.

usage

Same as tape, except if you return a promise from a test, it will be checked for errors. If there are no errors, the test will end. Otherwise the test will fail.

example

assuming delay() returns a promise

test("simple delay", function(t) {
    return delay(1);
});

test("should fail", function(t) {
    return delay(1).then(function() {
        throw new Error("Failed!");
    });
});

license

MIT

npm loves you