0.2.1 • Published 5 years ago
test-runner-counter v0.2.1
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 75pound@gmail.com.