early/test/test.js

17 lines
1.0 KiB
JavaScript
Raw Normal View History

2016-05-20 17:06:25 +00:00
"use strict";
require("typings-test");
const early = require("../dist/index");
describe('early', function () {
it('.start()', function (done) {
2016-05-20 17:06:25 +00:00
this.timeout(10000);
early.start('early');
2016-05-20 17:06:25 +00:00
setTimeout(done, 5000);
});
it('.stop()', function (done) {
2016-06-11 21:47:52 +00:00
early.stop()
.then(() => {
done();
});
2016-05-20 17:06:25 +00:00
});
});
2017-02-17 17:56:58 +00:00
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHdCQUFxQjtBQUNyQix1Q0FBdUM7QUFFdkMsUUFBUSxDQUFDLE9BQU8sRUFBRTtJQUNoQixFQUFFLENBQUMsVUFBVSxFQUFFLFVBQVUsSUFBSTtRQUMzQixJQUFJLENBQUMsT0FBTyxDQUFDLEtBQUssQ0FBQyxDQUFBO1FBQ25CLEtBQUssQ0FBQyxLQUFLLENBQUMsT0FBTyxDQUFDLENBQUE7UUFDcEIsVUFBVSxDQUFDLElBQUksRUFBRSxJQUFJLENBQUMsQ0FBQTtJQUN4QixDQUFDLENBQUMsQ0FBQTtJQUNGLEVBQUUsQ0FBQyxTQUFTLEVBQUUsVUFBVSxJQUFJO1FBQzFCLEtBQUssQ0FBQyxJQUFJLEVBQUU7YUFDVCxJQUFJLENBQUM7WUFDSixJQUFJLEVBQUUsQ0FBQTtRQUNSLENBQUMsQ0FBQyxDQUFBO0lBQ04sQ0FBQyxDQUFDLENBQUE7QUFDSixDQUFDLENBQUMsQ0FBQSJ9