Skip to content

Commit

Permalink
get it so the tests pass on both ios and android
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Apr 24, 2024
1 parent ef323b6 commit 38d7d2e
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions example/src/tests/groupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,15 +220,6 @@ test('group message delivery status', async () => {
`the messages length should be 2 but was ${alixMessages.length}`
)

if (alixMessages[0].content() !== 'hello, world') {
throw new Error("newest message should be 'hello, world'")
}

assert(
alixMessages[0].deliveryStatus === 'UNPUBLISHED',
`the message should have a delivery status of ${MessageDeliveryStatus.UNPUBLISHED} but was ${alixMessages[0].deliveryStatus}`
)

const alexMessagesFiltered: DecodedMessage[] = await alixGroup.messages(
true,
{
Expand All @@ -243,6 +234,11 @@ test('group message delivery status', async () => {

const alixMessages2: DecodedMessage[] = await alixGroup.messages(false)

assert(
alixMessages2.length === 2,
`the messages length should be 2 but was ${alixMessages.length}`
)

assert(
alixMessages2[0].deliveryStatus === 'PUBLISHED',
`the message should have a delivery status of PUBLISHED but was ${alixMessages2[0].deliveryStatus}`
Expand Down

0 comments on commit 38d7d2e

Please sign in to comment.