smartq now working

This commit is contained in:
Philipp Kunz 2017-01-20 18:50:37 +01:00
parent 1d52d098fb
commit f5cb0843fc
3 changed files with 10 additions and 10 deletions

View File

@ -33,7 +33,7 @@
"typings-global": "^1.0.14"
},
"devDependencies": {
"npmts-g": "^5.2.10",
"npmts-g": "^6.0.0",
"should": "^11.1.2",
"typings-test": "^1.0.3"
}

File diff suppressed because one or more lines are too long

View File

@ -78,7 +78,7 @@ describe("taskbuffer", function () {
testTask = new taskbuffer.Task({ taskFunction: testTaskFunction, preTask: testPreTask });
});
it("testTask should be and instance of Task", function () {
testTask.should.be.instanceof(taskbuffer.Task);
should(testTask).be.instanceof(taskbuffer.Task);
});
it("testTask.idle is true", function () {
if (!testTask.idle) {
@ -87,11 +87,11 @@ describe("taskbuffer", function () {
});
it("testTask.running is type boolean and initially false", function () {
testTask.running.should.be.type("boolean");
testTask.running.should.be.false();
should(testTask.running).be.type("boolean");
should(testTask.running).be.false();
});
it("testTask.trigger() should return Promise", function () {
testTask.trigger().should.be.Promise();
should(testTask.trigger()).be.Promise();
});
it("testTask.trigger() returned Promise should be fullfilled", function (done) {
testTask.trigger()