No need to return args as part of task.get

This reverts commit 831e22b4ff.
This reverts commit 6774514bd2.
This commit is contained in:
Girish Ramakrishnan
2019-12-06 08:40:16 -08:00
parent 2ffb32ae60
commit ffeb484a10
4 changed files with 14 additions and 3 deletions

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.eql(['ping']);
expect(res.body.args).to.be(undefined);
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.eql(['ping']);
expect(res.body.tasks[0].args).to.be(undefined);
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');