early/test/test.ts

17 lines
314 B
TypeScript
Raw Normal View History

import 'typings-test'
import early = require('../dist/index')
2016-05-20 17:06:25 +00:00
2017-02-17 17:56:58 +00:00
describe('early', function () {
it('.start()', function (done) {
this.timeout(10000)
early.start('early')
setTimeout(done, 5000)
})
it('.stop()', function (done) {
early.stop()
.then(() => {
done()
})
})
})