No need to return args as part of task.get
This reverts commit831e22b4ff. This reverts commit6774514bd2.
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user