mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Fix test.
This commit is contained in:
committed by
Benoit Marty
parent
a24cde6d0b
commit
bfe01e602c
+2
-8
@@ -215,14 +215,7 @@ class PreferencesRootPresenterTest {
|
|||||||
createPresenter(
|
createPresenter(
|
||||||
featureFlagService = FakeFeatureFlagService(
|
featureFlagService = FakeFeatureFlagService(
|
||||||
getAvailableFeaturesResult = { _, _ ->
|
getAvailableFeaturesResult = { _, _ ->
|
||||||
listOf(
|
emptyList()
|
||||||
FakeFeature(
|
|
||||||
key = "feature_1",
|
|
||||||
title = "Feature 1",
|
|
||||||
isInLabs = true,
|
|
||||||
isFinished = true,
|
|
||||||
)
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
matrixClient = FakeMatrixClient(
|
matrixClient = FakeMatrixClient(
|
||||||
@@ -230,6 +223,7 @@ class PreferencesRootPresenterTest {
|
|||||||
accountManagementUrlResult = { Result.success(null) },
|
accountManagementUrlResult = { Result.success(null) },
|
||||||
),
|
),
|
||||||
).test {
|
).test {
|
||||||
|
skipItems(1)
|
||||||
assertThat(awaitItem().showLabsItem).isFalse()
|
assertThat(awaitItem().showLabsItem).isFalse()
|
||||||
cancelAndIgnoreRemainingEvents()
|
cancelAndIgnoreRemainingEvents()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user