mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Replace the existing MockClientProxy with a generated one + special configuration options
This commit is contained in:
@@ -21,7 +21,7 @@ import XCTest
|
||||
@MainActor
|
||||
class StartChatScreenViewModelTests: XCTestCase {
|
||||
var viewModel: StartChatScreenViewModelProtocol!
|
||||
var clientProxy: MockClientProxy!
|
||||
var clientProxy: ClientProxyMock!
|
||||
var userDiscoveryService: UserDiscoveryServiceMock!
|
||||
|
||||
var context: StartChatScreenViewModel.Context {
|
||||
@@ -29,7 +29,7 @@ class StartChatScreenViewModelTests: XCTestCase {
|
||||
}
|
||||
|
||||
override func setUpWithError() throws {
|
||||
clientProxy = .init(userID: "")
|
||||
clientProxy = .init(.init(userID: ""))
|
||||
userDiscoveryService = UserDiscoveryServiceMock()
|
||||
userDiscoveryService.fetchSuggestionsReturnValue = .success([])
|
||||
userDiscoveryService.searchProfilesWithReturnValue = .success([])
|
||||
|
||||
Reference in New Issue
Block a user