projects
/
libreadventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58a1a8a
)
Fix CI
author
gparant
<g.parant@thecodingmachine.com>
Sun, 3 May 2020 23:54:49 +0000
(
01:54
+0200)
committer
gparant
<g.parant@thecodingmachine.com>
Sun, 3 May 2020 23:54:49 +0000
(
01:54
+0200)
back/tests/MessageTest.ts
patch
|
blob
|
blame
|
history
diff --git
a/back/tests/MessageTest.ts
b/back/tests/MessageTest.ts
index 070ddf57f8e4830608228cf681edca0e2c997a36..b3ce545b3ae20e70905902308d32f8e7202e442c 100644
(file)
--- a/
back/tests/MessageTest.ts
+++ b/
back/tests/MessageTest.ts
@@
-12,7
+12,7
@@
describe("Message Model", () => {
it("should expose a toJson method", () => {
let message = {userId: "test1", roomId: "test2"};
let messageObject = new Message(message);
- expect(messageObject.toJson()).toEqual({userId: "test1", roomId: "test2"});
+ expect(messageObject.toJson()).toEqual({userId: "test1", roomId: "test2"
, name: "foo"
});
})
it("should find throw error when no userId", () => {