test-runner-counter
v0.2.1
Published
Pass a test once a certain number of asynchronous events complete
Downloads
13
Readme
test-runner-counter
Pass a test once a certain number of asynchronous events complete.
const counter = Counter.create(2)
emitter.on('something', () => {
counter.pass()
})
process.nextTick(() => {
emitter.emit('something')
})
return counter.promise
© 2018 Lloyd Brookes [email protected].