Wrap tape tests to add setup and teardown functionality
Wrap tape tests to add setup, teardown and some syntax sugar to test definitions.
The functions passed into setup and teardown run as normal tape tests, you can call asserts and use
t.end() to finish them, they can work asynchronously.
You can also optionally specify the number of assertions expected when executing tests.
var tape = require'wrapping-tape';var test = tapedo test setuptend;do test teardowntend;;
var test = require'wrapping-tape'do test setuptend;do test teardowntend;;
var test = require'wrapping-tape';test'A test' 1toktrue 'Only 1 assertion expected';;
$ npm install wrapping-tape