now passing required loading time through promise
This commit is contained in:
26
test/test.ts
26
test/test.ts
@@ -1,14 +1,16 @@
|
||||
import "typings-test";
|
||||
import early = require("../dist/index");
|
||||
import 'typings-test'
|
||||
import early = require('../dist/index')
|
||||
|
||||
describe("early",function(){
|
||||
it(".start()",function(done){
|
||||
this.timeout(10000);
|
||||
early.start("early");
|
||||
setTimeout(done,5000);
|
||||
});
|
||||
it(".stop()",function(done){
|
||||
early.stop()
|
||||
.then(done);
|
||||
describe('early',function(){
|
||||
it('.start()',function(done){
|
||||
this.timeout(10000)
|
||||
early.start('early')
|
||||
setTimeout(done,5000)
|
||||
})
|
||||
})
|
||||
it('.stop()',function(done){
|
||||
early.stop()
|
||||
.then(() => {
|
||||
done()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user