Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing test group members formatting #497

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions example/src/tests/groupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2261,6 +2261,24 @@ test('can sync all groups', async () => {
return true
})

test('group members and 1:1 peerAddresses should have same formatting', async () => {
const [alix, bo] = await createClients(2)
const convo1v1 = await alix.conversations.newConversation(bo.address)
assert(
convo1v1.peerAddress === bo.address,
'1:1 peerAddress is not well formatted'
)

const group = await alix.conversations.newGroup([bo.address])
assert(
group.members.some((m) => m.addresses.includes(bo.address)) &&
group.members.some((m) => m.addresses.includes(alix.address)),
'group members addresses are not well formatted'
)

return true
})

// Commenting this out so it doesn't block people, but nice to have?
// test('can stream messages for a long time', async () => {
// const bo = await Client.createRandom({ env: 'local', enableV3: true })
Expand Down
Loading