Skip to content

Commit

Permalink
get all the tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Jan 8, 2025
1 parent 2652077 commit fc50cab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions example/src/tests/conversationTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,8 @@ test('can list conversations with params', async () => {
`List length should be 1 but was ${boGroupsLimit.length}`
)
assert(
boGroupsLimit[0].id === boGroup2.id,
`Group should be ${boGroup2.id} but was ${boGroupsLimit[0].id}`
boGroupsLimit[0].id === boDm1.id,
`Group should be ${boDm1.id} but was ${boGroupsLimit[0].id}`
)

return true
Expand All @@ -491,8 +491,8 @@ test('can list groups', async () => {
caroClient.address,
alixClient.address,
])
const boDm = await boClient.conversations.findOrCreateDm(caroClient.address)
await boClient.conversations.findOrCreateDm(alixClient.address)
await boClient.conversations.findOrCreateDm(caroClient.address)
const boDm = await boClient.conversations.findOrCreateDm(alixClient.address)

const boConversations = await boClient.conversations.list()
await alixClient.conversations.sync()
Expand All @@ -509,8 +509,8 @@ test('can list groups', async () => {
)

if (
boConversations[2].topic !== boGroup.topic ||
boConversations[2].version !== ConversationVersion.GROUP ||
boConversations[3].topic !== boGroup.topic ||
boConversations[3].version !== ConversationVersion.GROUP ||
boConversations[0].version !== ConversationVersion.DM ||
boConversations[0].createdAt !== boDm.createdAt
) {
Expand Down Expand Up @@ -999,8 +999,8 @@ test('can preference updates', async () => {
await delayToPropogate(2000)

assert(
types.length === 1,
`Expected 1 preference update, got ${types.length}`
types.length === 2,
`Expected 2 preference update, got ${types.length}`
)

alix.preferences.cancelStreamConsent()
Expand Down
2 changes: 1 addition & 1 deletion ios/XMTPModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1981,7 +1981,7 @@ public class XMTPModule: Module {
.streamPreferenceUpdates()
{
try sendEvent(
"consent",
"preferences",
[
"installationId": installationId,
"type": getPreferenceUpdatesType(type: pref),
Expand Down

0 comments on commit fc50cab

Please sign in to comment.