1
0
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:
ericdecanini
2022-07-08 11:56:00 +01:00
parent ed8212a8c0
commit 92492c95c1
2 changed files with 8 additions and 1 deletions

View File

@@ -127,7 +127,7 @@ class RoomListViewModel @AssistedInject constructor(
private val roomListSectionBuilder = RoomListSectionBuilder(
session,
stringProvider,
appStateHandlerImpl,
appStateHandler,
viewModelScope,
autoAcceptInvites,
{

View File

@@ -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
}
}