Skip to content

Commit

Permalink
fix: the tests now work correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Apr 25, 2024
1 parent a5af7a6 commit 7cd3dfa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
8 changes: 4 additions & 4 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ PODS:
- GenericJSON (~> 2.0)
- Logging (~> 1.0.0)
- secp256k1.swift (~> 0.1)
- XMTP (0.10.6):
- XMTP (0.10.7):
- Connect-Swift (= 0.12.0)
- GzipSwift
- LibXMTP (= 0.4.4-beta5)
Expand All @@ -458,7 +458,7 @@ PODS:
- ExpoModulesCore
- MessagePacker
- secp256k1.swift
- XMTP (= 0.10.6)
- XMTP (= 0.10.7)
- Yoga (1.14.0)

DEPENDENCIES:
Expand Down Expand Up @@ -763,8 +763,8 @@ SPEC CHECKSUMS:
secp256k1.swift: a7e7a214f6db6ce5db32cc6b2b45e5c4dd633634
SwiftProtobuf: 407a385e97fd206c4fbe880cc84123989167e0d1
web3.swift: 2263d1e12e121b2c42ffb63a5a7beb1acaf33959
XMTP: 0e31bcf8e904389ec831cc058601553045fda477
XMTPReactNative: 7a3f29770f0d496a00d2c6457ce63d878528360e
XMTP: 881f30f685c5c6df83aa3bca6ca400e799256290
XMTPReactNative: ca2bc46e645e71ce31afbbf236bc71cffc83a0f4
Yoga: e71803b4c1fff832ccf9b92541e00f9b873119b9

PODFILE CHECKSUM: 95d6ace79946933ecf80684613842ee553dd76a2
Expand Down
11 changes: 4 additions & 7 deletions example/src/tests/groupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -728,18 +728,15 @@ test('can stream all groups and conversations', async () => {
})

test('canMessage', async () => {
const bo = await Client.createRandom({ env: 'local' })
const alix = await Client.createRandom({ env: 'local' })
const [bo, alix, caro] = await createClients(3)

const canMessage = await bo.canMessage(alix.address)
if (!canMessage) {
throw new Error('should be able to message v2 client')
}

const [caro, chux] = await createClients(2)

const canMessageV3 = await caro.canGroupMessage([
chux.address,
caro.address,
alix.address,
'0x0000000000000000000000000000000000000000',
])
Expand All @@ -750,8 +747,8 @@ test('canMessage', async () => {
)

assert(
canMessageV3[chux.address.toLowerCase()] === true,
`should be able to message ${chux.address}`
canMessageV3[caro.address.toLowerCase()] === true,
`should be able to message ${caro.address}`
)

assert(
Expand Down
2 changes: 1 addition & 1 deletion ios/XMTPReactNative.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ Pod::Spec.new do |s|
s.source_files = "**/*.{h,m,swift}"
s.dependency 'secp256k1.swift'
s.dependency "MessagePacker"
s.dependency "XMTP", "= 0.10.6"
s.dependency "XMTP", "= 0.10.7"
end

0 comments on commit 7cd3dfa

Please sign in to comment.