From 7689cb28a3d3fa7f48349cff01e5d88e2c8ef639 Mon Sep 17 00:00:00 2001 From: Sugui Date: Sun, 7 Jan 2024 12:37:03 +0100 Subject: [PATCH] Shortened and detailed the test on "/" endpoint --- tests/app.test.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/app.test.ts b/tests/app.test.ts index 189b844..d7c78f7 100644 --- a/tests/app.test.ts +++ b/tests/app.test.ts @@ -52,11 +52,8 @@ describe("/login works as instended", async () => { describe("GET / shows all of the endpoints", async () => { const res = await request(app).get("/"); - it("should be", async () => { + it("should have the endpoints in the `endpoints` property, as an array", async () => { expect(res.body).toHaveProperty("endpoints"); - }); - - it("should be an array", () => { expect(Array.isArray(res.body.endpoints)).toBeTrue(); }); });