2016-09-15 12:59:22 +00:00
|
|
|
import 'typings-test'
|
|
|
|
import early = require('../dist/index')
|
2016-05-20 17:06:25 +00:00
|
|
|
|
2016-09-15 12:59:22 +00:00
|
|
|
describe('early',function(){
|
|
|
|
it('.start()',function(done){
|
|
|
|
this.timeout(10000)
|
|
|
|
early.start('early')
|
|
|
|
setTimeout(done,5000)
|
|
|
|
})
|
|
|
|
it('.stop()',function(done){
|
2016-06-11 21:47:52 +00:00
|
|
|
early.stop()
|
2016-09-15 12:59:22 +00:00
|
|
|
.then(() => {
|
|
|
|
done()
|
|
|
|
})
|
2016-05-20 17:06:25 +00:00
|
|
|
})
|
2016-09-15 12:59:22 +00:00
|
|
|
})
|