try-to-tape
wrap tape async functions and show error on reject
Last updated 6 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install try-to-tape 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.2.6                                ...           latest (6 years ago)

9 Versions

  • 1.2.6                                ...           6 years ago
  • 1.2.5                                ...           6 years ago
  • 1.2.4                                ...           7 years ago
  • 1.2.3                                ...           7 years ago
  • 1.2.2                                ...           7 years ago
  • 1.2.1                                ...           7 years ago
  • 1.2.0                                ...           7 years ago
  • 1.1.0                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (11)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |