Switch to a custom HomeserverReachability instead of different publishers

This commit is contained in:
Stefan Ceriu
2026-06-24 19:14:27 +03:00
parent 3ccaa04554
commit 0bd32d24fd
15 changed files with 65 additions and 50 deletions
@@ -18,13 +18,13 @@ struct SecureBackupLogoutConfirmationScreenViewModelTests {
}
private var secureBackupController: SecureBackupControllerMock
private var reachabilitySubject: CurrentValueSubject<NetworkMonitorReachability, Never>
private var reachabilitySubject: CurrentValueSubject<HomeserverReachability, Never>
init() {
secureBackupController = SecureBackupControllerMock()
secureBackupController.keyBackupState = CurrentValueSubject<SecureBackupKeyBackupState, Never>(.enabled).asCurrentValuePublisher()
reachabilitySubject = CurrentValueSubject<NetworkMonitorReachability, Never>(.reachable)
reachabilitySubject = CurrentValueSubject<HomeserverReachability, Never>(.reachable)
viewModel = SecureBackupLogoutConfirmationScreenViewModel(secureBackupController: secureBackupController,
homeserverReachabilityPublisher: reachabilitySubject.asCurrentValuePublisher())