Skip to content

Commit

Permalink
fix node bindings again
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronvoell committed Jul 3, 2024
1 parent a7fa04d commit a2b3a5b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions bindings_node/test/Conversations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,16 +149,16 @@ describe('Conversations', () => {
expect(groupWithDescription.groupImageUrlSquare()).toBe('')
expect(groupWithDescription.groupDescription()).toBe('foo')

const groupWithPinnedFrame = await client1
const groupWithPinnedFrameUrl = await client1
.conversations()
.createGroup([user2.account.address], {
groupPinnedFrame: 'https://frameurl.xyz',
groupPinnedFrameUrl: 'https://frameurl.xyz',
})
expect(groupWithPinnedFrame).toBeDefined()
expect(groupWithPinnedFrame.groupName()).toBe('')
expect(groupWithPinnedFrame.groupImageUrlSquare()).toBe('')
expect(groupWithPinnedFrame.groupDescription()).toBe('')
expect(groupWithPinnedFrame.groupPinnedFrame()).toBe('https://frameurl.xyz')
expect(groupWithPinnedFrameUrl).toBeDefined()
expect(groupWithPinnedFrameUrl.groupName()).toBe('')
expect(groupWithPinnedFrameUrl.groupImageUrlSquare()).toBe('')
expect(groupWithPinnedFrameUrl.groupDescription()).toBe('')
expect(groupWithPinnedFrameUrl.groupUrl()).toBe('https://frameurl.xyz')

Check failure on line 161 in bindings_node/test/Conversations.test.ts

View workflow job for this annotation

GitHub Actions / Test

test/Conversations.test.ts > Conversations > should create a new group with options

TypeError: groupWithPinnedFrameUrl.groupUrl is not a function ❯ test/Conversations.test.ts:161:36
})

it('should update group metadata', async () => {
Expand All @@ -179,8 +179,8 @@ describe('Conversations', () => {
await group.updateGroupDescription('bar')
expect(group.groupDescription()).toBe('bar')

await group.updatePinnedFrame('https://frameurl.xyz')
expect(group.groupPinnedFrame()).toBe('https://frameurl.xyz')
await group.updateGroupPinnedFrameUrl('https://frameurl.xyz')
expect(group.groupPinnedFrameUrl()).toBe('https://frameurl.xyz')
})

it('should stream new groups', async () => {
Expand Down

0 comments on commit a2b3a5b

Please sign in to comment.