Skip to content

Commit 3b2fefe

Browse files
Prakhar-FF13pankajjs
authored andcommitted
Updating user integration test after refactoring
Signed-off-by: Prakhar Kumar <[email protected]>
1 parent 75e297a commit 3b2fefe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/integration/users.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,12 +1488,12 @@ describe("Users", function () {
14881488
});
14891489

14901490
it("should handle errors gracefully if getUsersWithIncompleteTasks fails", async function () {
1491-
Sinon.stub(userService, "getUsersWithIncompleteTasks").rejects(new Error(INTERNAL_SERVER_ERROR));
1491+
Sinon.stub(userService, "getUsersWithIncompleteTasks").rejects(new Error(SOMETHING_WENT_WRONG));
14921492

14931493
const res = await chai.request(app).get("/users?departed=true&dev=true");
14941494

1495-
expect(res).to.have.status(500);
1496-
expect(res.body.message).to.be.equal(INTERNAL_SERVER_ERROR);
1495+
expect(res).to.have.status(503);
1496+
expect(res.body.message).to.be.equal(SOMETHING_WENT_WRONG);
14971497
});
14981498
});
14991499

0 commit comments

Comments
 (0)