From 7e00d61f9484a949e598cec903dba4aab38d49aa Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20N=C3=A9grier?= Date: Fri, 15 May 2020 23:17:58 +0200 Subject: [PATCH] Fixing test --- back/tests/MessageTest.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/back/tests/MessageTest.ts b/back/tests/MessageTest.ts index d908e12..ab7d647 100644 --- a/back/tests/MessageTest.ts +++ b/back/tests/MessageTest.ts @@ -11,12 +11,6 @@ describe("Message Model", () => { expect(messageObject.character).toBe("user"); }) - it("should expose a toJson method", () => { - let message = {userId: "test1", roomId: "test2", name: "foo", character: "user"}; - let messageObject = new Message(message); - expect(messageObject.toJson()).toEqual({userId: "test1", roomId: "test2", name: "foo", character: "user"}); - }); - it("should find throw error when no userId", () => { let message = {roomId: "test2"}; expect(() => { -- 2.25.1