Fix CI
authorgparant <g.parant@thecodingmachine.com>
Wed, 6 May 2020 00:17:07 +0000 (02:17 +0200)
committergparant <g.parant@thecodingmachine.com>
Wed, 6 May 2020 00:17:07 +0000 (02:17 +0200)
back/tests/MessageTest.ts

index e2b5f3720afdb2a2e1217b45db7a659f548c97a7..47e4cac1beafc324a44c4c41d7f966932dd99fa8 100644 (file)
@@ -8,11 +8,11 @@ describe("Message Model", () => {
         expect(messageObject.userId).toBe("test1");
         expect(messageObject.roomId).toBe("test2");
         expect(messageObject.name).toBe("foo");
-        expect(messageObject.name).toBe("user");
+        expect(messageObject.frame).toBe("user");
     })
 
     it("should expose a toJson method", () => {
-        let message = {userId: "test1", roomId: "test2", name: "foo"};
+        let message = {userId: "test1", roomId: "test2", name: "foo", frame: "user"};
         let messageObject = new Message(message);
         expect(messageObject.toJson()).toEqual({userId: "test1", roomId: "test2", name: "foo", frame: "user"});
     });