2016-05-20 17:06:25 +00:00
|
|
|
"use strict";
|
2016-09-18 21:11:26 +00:00
|
|
|
require("typings-test");
|
|
|
|
const early = require("../dist/index");
|
2016-09-15 12:59:22 +00:00
|
|
|
describe('early', function () {
|
|
|
|
it('.start()', function (done) {
|
2016-05-20 17:06:25 +00:00
|
|
|
this.timeout(10000);
|
2016-09-15 12:59:22 +00:00
|
|
|
early.start('early');
|
2016-05-20 17:06:25 +00:00
|
|
|
setTimeout(done, 5000);
|
|
|
|
});
|
2016-09-15 12:59:22 +00:00
|
|
|
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-18 21:11:26 +00:00
|
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHdCQUFxQjtBQUNyQix1Q0FBdUM7QUFFdkMsUUFBUSxDQUFDLE9BQU8sRUFBQztJQUNiLEVBQUUsQ0FBQyxVQUFVLEVBQUMsVUFBUyxJQUFJO1FBQ3ZCLElBQUksQ0FBQyxPQUFPLENBQUMsS0FBSyxDQUFDLENBQUE7UUFDbkIsS0FBSyxDQUFDLEtBQUssQ0FBQyxPQUFPLENBQUMsQ0FBQTtRQUNwQixVQUFVLENBQUMsSUFBSSxFQUFDLElBQUksQ0FBQyxDQUFBO0lBQ3pCLENBQUMsQ0FBQyxDQUFBO0lBQ0YsRUFBRSxDQUFDLFNBQVMsRUFBQyxVQUFTLElBQUk7UUFDdEIsS0FBSyxDQUFDLElBQUksRUFBRTthQUNQLElBQUksQ0FBQztZQUNGLElBQUksRUFBRSxDQUFBO1FBQ1YsQ0FBQyxDQUFDLENBQUE7SUFDVixDQUFDLENBQUMsQ0FBQTtBQUNOLENBQUMsQ0FBQyxDQUFBIn0=
|