1.2.6 • Published 4 years ago

try-to-tape v1.2.6

Weekly downloads
41
License
MIT
Repository
github
Last release
4 years ago

Try to Tape NPM version Dependency Status Build Status Coverage Status

Wrap tape async functions and show error on reject.

Install

npm i try-to-tape

Example

const tryToTape = require('try-to-tape');
const tape = tryToTape(require('tape'));

test('lib: arguments', async (t) => {
    throw Error('hello');
    // will call t.fail with an error
    // will call t.end
    
    t.end();
});

Related

License

MIT

1.2.6

4 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago