Skip to content

Commit

Permalink
refactor: typo error and removing try catch block in the unit test fo…
Browse files Browse the repository at this point in the history
…r health checkpoint

Refs: BLAIS5-3811
  • Loading branch information
SidraJaved committed Oct 10, 2023
1 parent 959e31f commit 24c2995
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions server/tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,11 @@ const app = nodeServer(environmentVariables, blaiseApiMock.object);

const request = supertest(app);

describe("Test Heath Endpoint", () => {
describe("Test Health Endpoint", () => {
it("should return a 200 status and json message", async () => {
try {
const response = await request.get("/tobi-ui/version/health");
const response = await request.get("/tobi-ui/version/health");

expect(response.statusCode).toEqual(200);
expect(response.body).toStrictEqual({healthy: true});
} catch (error) {
console.error(error);
}
expect(response.statusCode).toEqual(200);
expect(response.body).toStrictEqual({ healthy: true });
});
});

0 comments on commit 24c2995

Please sign in to comment.