Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
netbe committed Jan 13, 2025
1 parent 7afb762 commit ced5dfb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ final class ResolveOneOnOneConversationsUseCaseTests: XCTestCase {
mockOneOnOneResolver = MockOneOnOneResolverInterface()
mockPullSelfUserClients = MockPullSelfUserClientsProtocol()
mockPullSelfUserClients.pullSelfClients_MockMethod = {}

sut = ResolveOneOnOneConversationsUseCase(
context: syncContext,
supportedProtocolService: mockSupportedProtocolService,
Expand Down Expand Up @@ -75,15 +75,17 @@ final class ResolveOneOnOneConversationsUseCaseTests: XCTestCase {
// GIVEN
await syncContext.perform { [self] in
let selfUser = ZMUser.selfUser(in: syncContext)
selfUser.supportedProtocols = [.proteus]
mockSupportedProtocolService.calculateSupportedProtocols_MockValue = [.mls, .proteus]
selfUser.supportedProtocols = [.mls]
mockSupportedProtocolService.calculateSupportedProtocols_MockValue = [.mls]
}
mockOneOnOneResolver.resolveAllOneOnOneConversationsIn_MockMethod = { _ in }

// WHEN
try await sut.invoke()

// THEN
XCTAssertEqual(mockPullSelfUserClients.pullSelfClients_Invocations.count, 1)
XCTAssertEqual(mockOneOnOneResolver.resolveAllOneOnOneConversationsIn_Invocations.count, 1)
}


Expand Down

0 comments on commit ced5dfb

Please sign in to comment.