Skip to content

Commit

Permalink
write a test for it
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Feb 21, 2024
1 parent 60d47bf commit 2c49377
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Tests/XMTPTests/ClientTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,30 @@ class ClientTests: XCTestCase {
)

XCTAssertEqual(client.address, bundleClient.address)

await assertThrowsAsyncError(
_ = try await Client.from(
bundle: keys,
options: .init(
api: .init(env: .local, isSecure: false),
mlsAlpha: true,
mlsEncryptionKey: nil,
mlsDbPath: dbPath
)
)
)

await assertThrowsAsyncError(
_ = try await Client.from(
bundle: keys,
options: .init(
api: .init(env: .local, isSecure: false),
mlsAlpha: true,
mlsEncryptionKey: key,
mlsDbPath: nil
)
)
)
}

func testCanMessage() async throws {
Expand Down

0 comments on commit 2c49377

Please sign in to comment.