Skip to content

Commit

Permalink
Fix node bindings tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rygine committed Dec 17, 2024
1 parent a151eb6 commit 7e7410f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bindings_node/test/Conversations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ describe('Conversations', () => {
updateGroupPinnedFrameUrlPolicy: 0,
})
expect(group.addedByInboxId()).toBe(client1.inboxId())
expect(group.findMessages().length).toBe(1)
expect((await group.findMessages()).length).toBe(1)
const members = await group.listMembers()
expect(members.length).toBe(2)
const memberInboxIds = members.map((member) => member.inboxId)
expect(memberInboxIds).toContain(client1.inboxId())
expect(memberInboxIds).toContain(client2.inboxId())
expect(group.groupMetadata().conversationType()).toBe('group')
expect(group.groupMetadata().creatorInboxId()).toBe(client1.inboxId())
expect((await group.groupMetadata()).conversationType()).toBe('group')
expect((await group.groupMetadata()).creatorInboxId()).toBe(client1.inboxId())

expect(group.consentState()).toBe(ConsentState.Allowed)

Expand Down Expand Up @@ -198,14 +198,14 @@ describe('Conversations', () => {
updateGroupPinnedFrameUrlPolicy: 0,
})
expect(group.addedByInboxId()).toBe(client1.inboxId())
expect(group.findMessages().length).toBe(0)
expect((await group.findMessages()).length).toBe(0)
const members = await group.listMembers()
expect(members.length).toBe(2)
const memberInboxIds = members.map((member) => member.inboxId)
expect(memberInboxIds).toContain(client1.inboxId())
expect(memberInboxIds).toContain(client2.inboxId())
expect(group.groupMetadata().conversationType()).toBe('dm')
expect(group.groupMetadata().creatorInboxId()).toBe(client1.inboxId())
expect((await group.groupMetadata()).conversationType()).toBe('dm')
expect((await group.groupMetadata()).creatorInboxId()).toBe(client1.inboxId())

expect(group.consentState()).toBe(ConsentState.Allowed)

Expand Down

0 comments on commit 7e7410f

Please sign in to comment.