Fix some coding style issues
This commit is contained in:
parent
3566b10e3c
commit
047384c08c
|
@ -151,4 +151,3 @@ class DevicesViewModel @AssistedInject constructor(
|
||||||
// TODO implement when needed
|
// TODO implement when needed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
package im.vector.app.features.settings.devices.v2
|
package im.vector.app.features.settings.devices.v2
|
||||||
|
|
||||||
import im.vector.app.core.di.ActiveSessionHolder
|
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.Flow
|
||||||
import kotlinx.coroutines.flow.emptyFlow
|
import kotlinx.coroutines.flow.emptyFlow
|
||||||
import kotlinx.coroutines.flow.map
|
import kotlinx.coroutines.flow.map
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
|
|
||||||
package im.vector.app.features.settings.devices.v2
|
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.CryptoDeviceInfo
|
||||||
import org.matrix.android.sdk.api.session.crypto.model.RoomEncryptionTrustLevel
|
import org.matrix.android.sdk.api.session.crypto.model.RoomEncryptionTrustLevel
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
|
|
@ -121,10 +121,8 @@ class DevicesViewModelTest {
|
||||||
|
|
||||||
// Then
|
// Then
|
||||||
viewModelTest.assertLatestState {
|
viewModelTest.assertLatestState {
|
||||||
it.devices is Success
|
it.devices is Success && it.devices.invoke() == deviceFullInfoList &&
|
||||||
&& it.devices.invoke() == deviceFullInfoList
|
it.inactiveSessionsCount == 1 && it.unverifiedSessionsCount == 1
|
||||||
&& it.inactiveSessionsCount == 1
|
|
||||||
&& it.unverifiedSessionsCount == 1
|
|
||||||
}
|
}
|
||||||
viewModelTest.finish()
|
viewModelTest.finish()
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,7 +66,7 @@ class GetDeviceFullInfoListUseCaseTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@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
|
// Given
|
||||||
val currentSessionCrossSigningInfo = givenCurrentSessionCrossSigningInfo()
|
val currentSessionCrossSigningInfo = givenCurrentSessionCrossSigningInfo()
|
||||||
val fakeFlowSession = fakeActiveSessionHolder.fakeSession.givenFlowSession()
|
val fakeFlowSession = fakeActiveSessionHolder.fakeSession.givenFlowSession()
|
||||||
|
|
Loading…
Reference in New Issue