mirror of
https://github.com/vector-im/riotX-android
synced 2025-10-06 00:02:48 +02:00
Fixes errors and gets first test passing
This commit is contained in:
@@ -127,7 +127,7 @@ class RoomListViewModel @AssistedInject constructor(
|
||||
private val roomListSectionBuilder = RoomListSectionBuilder(
|
||||
session,
|
||||
stringProvider,
|
||||
appStateHandlerImpl,
|
||||
appStateHandler,
|
||||
viewModelScope,
|
||||
autoAcceptInvites,
|
||||
{
|
||||
|
@@ -20,6 +20,8 @@ import im.vector.app.core.di.ActiveSessionHolder
|
||||
import im.vector.app.features.analytics.AnalyticsTracker
|
||||
import im.vector.app.features.ui.UiStateRepository
|
||||
import io.mockk.mockk
|
||||
import org.amshove.kluent.shouldBe
|
||||
import org.junit.Test
|
||||
|
||||
internal class AppStateHandlerTest {
|
||||
|
||||
@@ -35,6 +37,11 @@ internal class AppStateHandlerTest {
|
||||
analyticsTracker,
|
||||
)
|
||||
|
||||
@Test
|
||||
fun `given selected space is null, when getCurrentSpace, then return null`() {
|
||||
val currentSpace = appStateHandlerImpl.getCurrentSpace()
|
||||
|
||||
currentSpace shouldBe null
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user