mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 02:15:35 +03:00
Fix some coding style issues
This commit is contained in:
parent
3566b10e3c
commit
047384c08c
5 changed files with 3 additions and 8 deletions
|
@ -151,4 +151,3 @@ class DevicesViewModel @AssistedInject constructor(
|
|||
// TODO implement when needed
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
package im.vector.app.features.settings.devices.v2
|
||||
|
||||
import im.vector.app.core.di.ActiveSessionHolder
|
||||
import im.vector.app.features.settings.devices.v2.CurrentSessionCrossSigningInfo
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
import kotlinx.coroutines.flow.emptyFlow
|
||||
import kotlinx.coroutines.flow.map
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
|
||||
package im.vector.app.features.settings.devices.v2
|
||||
|
||||
import im.vector.app.features.settings.devices.v2.CurrentSessionCrossSigningInfo
|
||||
import org.matrix.android.sdk.api.session.crypto.model.CryptoDeviceInfo
|
||||
import org.matrix.android.sdk.api.session.crypto.model.RoomEncryptionTrustLevel
|
||||
import javax.inject.Inject
|
||||
|
|
|
@ -121,10 +121,8 @@ class DevicesViewModelTest {
|
|||
|
||||
// Then
|
||||
viewModelTest.assertLatestState {
|
||||
it.devices is Success
|
||||
&& it.devices.invoke() == deviceFullInfoList
|
||||
&& it.inactiveSessionsCount == 1
|
||||
&& it.unverifiedSessionsCount == 1
|
||||
it.devices is Success && it.devices.invoke() == deviceFullInfoList &&
|
||||
it.inactiveSessionsCount == 1 && it.unverifiedSessionsCount == 1
|
||||
}
|
||||
viewModelTest.finish()
|
||||
}
|
||||
|
|
|
@ -66,7 +66,7 @@ class GetDeviceFullInfoListUseCaseTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
fun `given active session when getting list of device full info then the result list is correct and sorted in descending order`() = runTest(testDispatcher) {
|
||||
fun `given active session when getting list of device full info then the list is correct and sorted in descending order`() = runTest(testDispatcher) {
|
||||
// Given
|
||||
val currentSessionCrossSigningInfo = givenCurrentSessionCrossSigningInfo()
|
||||
val fakeFlowSession = fakeActiveSessionHolder.fakeSession.givenFlowSession()
|
||||
|
|
Loading…
Reference in a new issue