early/test/test.ts

11 lines
274 B
TypeScript
Raw Normal View History

2017-03-26 20:01:33 +00:00
import { expect, tap } from 'tapbundle'
import * as smartdelay from 'smartdelay'
import early = require('../dist/index')
2016-05-20 17:06:25 +00:00
2017-03-26 20:01:33 +00:00
tap.test('.start()', async () => {
early.start('early')
await smartdelay.delayFor(2000)
})
2017-03-26 20:01:33 +00:00
tap.test('.stop()', async () => {
await early.stop()
})