@frenz/ducktape
v1.0.0
Published
ducktape for tape
Downloads
1
Readme
@frenz/ducktape
naive wrapper of tape to add support for promises (and automatically ending your test).
Usage
import ducktape from 'ducktape'
const sleep = n => new Promise(resolve => setTimeout(resolve))
const error = new Promise(reject => reject(new Error('will error')));
ducktape('description', async t => {
t.ok(true, 'this is tape')
await sleep(1)
t.ok(true, 'this waited')
await error
})
LICENSE
ISC