Fix up unit tests
This commit is contained in:
parent
1437f6d41d
commit
643b09a77c
@ -140,7 +140,8 @@ class StartAuthenticationFlowUseCaseTest {
|
|||||||
isLoginAndRegistrationSupported = true,
|
isLoginAndRegistrationSupported = true,
|
||||||
homeServerUrl = A_DECLARED_HOMESERVER_URL,
|
homeServerUrl = A_DECLARED_HOMESERVER_URL,
|
||||||
isOutdatedHomeserver = false,
|
isOutdatedHomeserver = false,
|
||||||
isLogoutDevicesSupported = false
|
isLogoutDevicesSupported = false,
|
||||||
|
isLoginWithQrSupported = false
|
||||||
)
|
)
|
||||||
|
|
||||||
private fun expectedResult(
|
private fun expectedResult(
|
||||||
|
@ -58,10 +58,6 @@ class FakeAuthenticationService : AuthenticationService by mockk() {
|
|||||||
coEvery { getWellKnownData(matrixId, config) } returns result
|
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) {
|
fun givenWellKnownThrows(matrixId: String, config: HomeServerConnectionConfig?, cause: Throwable) {
|
||||||
coEvery { getWellKnownData(matrixId, config) } throws cause
|
coEvery { getWellKnownData(matrixId, config) } throws cause
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user