Skip to content

Commit

Permalink
bump the test to use find group instead
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Aug 7, 2024
1 parent 5b9374c commit 9eb4fc7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions example/src/tests/groupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2076,12 +2076,9 @@ test('can create new installation without breaking group', async () => {
await client1.conversations.syncGroups()
await client2.conversations.syncGroups()

const client1Group = (await client1.conversations.listGroups()).find(
(g) => g.id === group.id
)
const client2Group = (await client2.conversations.listGroups()).find(
(g) => g.id === group.id
)
const client1Group = await client1.conversations.findGroup(group.id)
const client2Group = await client2.conversations.findGroup(group.id)

await client1Group?.sync()
await client2Group?.sync()

Expand Down

0 comments on commit 9eb4fc7

Please sign in to comment.