Fix failing test

This commit is contained in:
Girish Ramakrishnan
2019-11-23 18:35:15 -08:00
parent 6774514bd2
commit 831e22b4ff
+2 -2
View File
@@ -62,7 +62,7 @@ describe('Tasks API', function () {
.end(function (err, res) {
expect(res.statusCode).to.equal(200);
expect(res.body.percent).to.be(100);
expect(res.body.args).to.be(undefined);
expect(res.body.args).to.eql(['ping']);
expect(res.body.active).to.be(false); // finished
expect(res.body.success).to.be(true);
expect(res.body.result).to.be('ping');
@@ -144,7 +144,7 @@ describe('Tasks API', function () {
expect(res.body.tasks.length >= 1).to.be(true);
expect(res.body.tasks[0].id).to.be(taskId);
expect(res.body.tasks[0].percent).to.be(100);
expect(res.body.tasks[0].args).to.be(undefined);
expect(res.body.tasks[0].args).to.eql(['ping']);
expect(res.body.tasks[0].active).to.be(false); // finished
expect(res.body.tasks[0].success).to.be(true); // finished
expect(res.body.tasks[0].result).to.be('ping');