Skip to content

Commit

Permalink
Fix missing mocked value
Browse files Browse the repository at this point in the history
  • Loading branch information
phil1995 committed Nov 21, 2023
1 parent 6c7b241 commit 575960f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ final class HubAuthenticationViewModelTests: XCTestCase {
XCTAssertFalse(delegateMock.hubAuthenticationViewModelWantsToShowLoadingIndicatorCalled)
XCTAssertFalse(delegateMock.hubAuthenticationViewModelWantsToHideLoadingIndicatorCalled)
DependencyValues.mockDependency(\.hubKeyService, with: hubKeyServiceMock)
let hubKeyProviderMock = CryptomatorHubKeyProviderMock()
DependencyValues.mockDependency(\.cryptomatorHubKeyProvider, with: hubKeyProviderMock)
hubKeyProviderMock.getPrivateKeyReturnValue = P384.KeyAgreement.PrivateKey(compactRepresentable: false)

let calledReceiveKey = XCTestExpectation()
hubKeyServiceMock.receiveKeyAuthStateVaultConfigClosure = { _, _ in
calledReceiveKey.fulfill()
Expand Down

0 comments on commit 575960f

Please sign in to comment.