mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Fix which roomID is used when dismissing windows and unit test mocks.
This commit is contained in:
committed by
Stefan Ceriu
parent
4a4cdce090
commit
ec9cf76f2d
@@ -14,9 +14,13 @@ extension AppMediatorMock {
|
||||
|
||||
mock.underlyingAppState = .active
|
||||
mock.requestAuthorizationIfNeededUnderlyingReturnValue = true
|
||||
mock.underlyingWindowManager = WindowManagerMock()
|
||||
mock.underlyingNetworkMonitor = NetworkMonitorMock.default
|
||||
|
||||
let windowManagerMock = WindowManagerMock()
|
||||
windowManagerMock.closeAllAuxiliaryWindowsClosure = { }
|
||||
windowManagerMock.closeAuxiliaryWindowForTypeClosure = { _ in }
|
||||
mock.underlyingWindowManager = windowManagerMock
|
||||
|
||||
return mock
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user