mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 21:48:50 +03:00
Fixes lint errors
This commit is contained in:
parent
92f87a3a5a
commit
275505b3e6
2 changed files with 3 additions and 2 deletions
|
@ -47,7 +47,7 @@ class DefaultSessionParamsCreatorTest : DefaultSessionParamsCreatorTestBase() {
|
||||||
@Test
|
@Test
|
||||||
fun `given credentials homeServerUri is equal to homeServerConnectionConfig, when create, then do not validate`() = runBlockingTest {
|
fun `given credentials homeServerUri is equal to homeServerConnectionConfig, when create, then do not validate`() = runBlockingTest {
|
||||||
val homeServerConnectionConfigWithCredentialsUri = homeServerConnectionConfig.copy(homeServerUriBase = discoveryWithHomeServer.getHomeServerUri())
|
val homeServerConnectionConfigWithCredentialsUri = homeServerConnectionConfig.copy(homeServerUriBase = discoveryWithHomeServer.getHomeServerUri())
|
||||||
val output = sessionParamsCreator.create(credentialsWithHomeServer, homeServerConnectionConfigWithCredentialsUri , LoginType.UNKNOWN)
|
val output = sessionParamsCreator.create(credentialsWithHomeServer, homeServerConnectionConfigWithCredentialsUri, LoginType.UNKNOWN)
|
||||||
|
|
||||||
fakeIsValidClientServerApiTask.verifyNoExecution()
|
fakeIsValidClientServerApiTask.verifyNoExecution()
|
||||||
assertExpectedSessionParamsWithHomeServer(output)
|
assertExpectedSessionParamsWithHomeServer(output)
|
||||||
|
|
|
@ -35,8 +35,9 @@ class LoginTypeTest {
|
||||||
val types = LoginType.values()
|
val types = LoginType.values()
|
||||||
|
|
||||||
types.forEach { type ->
|
types.forEach { type ->
|
||||||
if (type != LoginType.UNKNOWN)
|
if (type != LoginType.UNKNOWN) {
|
||||||
LoginType.fromValue(type.value) shouldNotBeEqualTo LoginType.UNKNOWN
|
LoginType.fromValue(type.value) shouldNotBeEqualTo LoginType.UNKNOWN
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue