Skip to content

Commit

Permalink
fix: group messages decoded properly
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronvoell committed Feb 8, 2024
1 parent 331f71c commit a3059db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example/src/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ test('can message in a group', async () => {
throw new Error('num messages for bob should be 2, but it is' + bobMessages.length)
}
if (bobMessages[0].content() != "gm") {
throw new Error('newest message should be gm')
throw new Error('newest message should be \'gm\'')
}
if (bobMessages[1].content() != "hello, world") {
throw new Error('newest message should be hello, world')
throw new Error('newest message should be \'hello, world\'')
}
// Bob can send a message
bobGroups[0].send("hey guys!")
Expand All @@ -202,10 +202,10 @@ test('can message in a group', async () => {
await camGroups[0].sync()
let camMessages = await camGroups[0].messages()
if (camMessages[1].content() != "gm") {
throw new Error('second Message should be gm')
throw new Error('second Message should be \'gm\'')
}
if (camMessages[0].content() != "hey guys!") {
throw new Error('newest Message should be hey guys!')
throw new Error('newest Message should be \'hey guys!\'')
}

return true
Expand Down

0 comments on commit a3059db

Please sign in to comment.