diff --git a/server/tests/index.test.ts b/server/tests/index.test.ts index 2872333..2a942b2 100644 --- a/server/tests/index.test.ts +++ b/server/tests/index.test.ts @@ -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 }); }); }); \ No newline at end of file