From 323efca180155082891e3648897e8047b4ee3a1b Mon Sep 17 00:00:00 2001 From: NouhailaAater Date: Fri, 28 Feb 2025 03:13:28 -0500 Subject: [PATCH] fix tests --- server/__tests__/rooms.test.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server/__tests__/rooms.test.js b/server/__tests__/rooms.test.js index 2bd9fec..25c61c2 100644 --- a/server/__tests__/rooms.test.js +++ b/server/__tests__/rooms.test.js @@ -190,7 +190,8 @@ describe("Rooms", () => { describe("roomExists", () => { it("should return true if room exists", async () => { - const title = "test room"; + const title = "TEST ROOM"; + const userId = '66fc70bea1b9e87655cf17c9'; collection.findOne.mockResolvedValue({ title }); @@ -203,7 +204,9 @@ describe("Rooms", () => { }); it("should return false if room does not exist", async () => { - const title = "nonexistent room"; + const title = "NONEXISTENT ROOM"; + const userId = '66fc70bea1b9e87655cf17c9'; + collection.findOne.mockResolvedValue(null); const result = await rooms.roomExists(title);