From 7e7410f565eb42892cad2f4a91b61a0cf0eb801b Mon Sep 17 00:00:00 2001 From: Ry Racherbaumer Date: Tue, 17 Dec 2024 12:30:19 -0600 Subject: [PATCH] Fix node bindings tests --- bindings_node/test/Conversations.test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bindings_node/test/Conversations.test.ts b/bindings_node/test/Conversations.test.ts index ee40b431d..c6c6e2a1b 100644 --- a/bindings_node/test/Conversations.test.ts +++ b/bindings_node/test/Conversations.test.ts @@ -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) @@ -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)