Skip to content

Commit cf1888c

Browse files
committed
add test for check isCollapsed in response or not
1 parent 4b49a49 commit cf1888c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/integration/tasks.test.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ describe("Tasks", function () {
4444
completionAward: { [DINERO]: 3, [NEELAM]: 300 },
4545
lossRate: { [DINERO]: 1 },
4646
isNoteworthy: true,
47+
isCollapsed: true,
4748
},
4849
{
4950
title: "Test task",
@@ -185,6 +186,19 @@ describe("Tasks", function () {
185186
return done();
186187
});
187188
});
189+
it("Should return isCollapsed property in response", function (done) {
190+
chai
191+
.request(app)
192+
.get(`/tasks/${taskId1}/details`)
193+
.end((err, res) => {
194+
if (err) {
195+
return done(err);
196+
}
197+
198+
expect(res.body.taskData).to.have.property("isCollapsed");
199+
return done();
200+
});
201+
});
188202
});
189203

190204
describe("GET /tasks/self", function () {

0 commit comments

Comments
 (0)