We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b49a49 commit cf1888cCopy full SHA for cf1888c
test/integration/tasks.test.js
@@ -44,6 +44,7 @@ describe("Tasks", function () {
44
completionAward: { [DINERO]: 3, [NEELAM]: 300 },
45
lossRate: { [DINERO]: 1 },
46
isNoteworthy: true,
47
+ isCollapsed: true,
48
},
49
{
50
title: "Test task",
@@ -185,6 +186,19 @@ describe("Tasks", function () {
185
186
return done();
187
});
188
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
202
203
204
describe("GET /tasks/self", function () {
0 commit comments