From: David NĂ©grier Date: Fri, 15 May 2020 21:17:58 +0000 (+0200) Subject: Fixing test X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7e00d61f9484a949e598cec903dba4aab38d49aa;p=libreadventure.git Fixing test --- 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(() => {