mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-28 18:09:30 +01:00
Fix up unit tests
This commit is contained in:
parent
1437f6d41d
commit
643b09a77c
@ -140,7 +140,8 @@ class StartAuthenticationFlowUseCaseTest {
|
||||
isLoginAndRegistrationSupported = true,
|
||||
homeServerUrl = A_DECLARED_HOMESERVER_URL,
|
||||
isOutdatedHomeserver = false,
|
||||
isLogoutDevicesSupported = false
|
||||
isLogoutDevicesSupported = false,
|
||||
isLoginWithQrSupported = false
|
||||
)
|
||||
|
||||
private fun expectedResult(
|
||||
|
@ -58,10 +58,6 @@ class FakeAuthenticationService : AuthenticationService by mockk() {
|
||||
coEvery { getWellKnownData(matrixId, config) } returns result
|
||||
}
|
||||
|
||||
fun givenIsQrLoginSupported(config: HomeServerConnectionConfig, result: Boolean) {
|
||||
coEvery { isQrLoginSupported(config) } returns result
|
||||
}
|
||||
|
||||
fun givenWellKnownThrows(matrixId: String, config: HomeServerConnectionConfig?, cause: Throwable) {
|
||||
coEvery { getWellKnownData(matrixId, config) } throws cause
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user