Try to fix tests

This commit is contained in:
Jorge Martín
2023-08-17 16:09:46 +02:00
committed by yostyle
parent 9fdeb81e50
commit b0d0c2e5d2

View File

@@ -159,6 +159,8 @@ class RoomDetailsPresenterTests {
presenter.present()
}.test {
assertThat(awaitItem().canInvite).isFalse()
cancelAndIgnoreRemainingEvents()
}
}
@@ -172,6 +174,8 @@ class RoomDetailsPresenterTests {
presenter.present()
}.test {
assertThat(awaitItem().canInvite).isFalse()
cancelAndIgnoreRemainingEvents()
}
}
@@ -289,6 +293,8 @@ class RoomDetailsPresenterTests {
}.test {
// Initially false, and no further events
assertThat(awaitItem().canEdit).isFalse()
cancelAndIgnoreRemainingEvents()
}
}
@@ -305,6 +311,8 @@ class RoomDetailsPresenterTests {
}.test {
// The initial state is "hidden" and no further state changes happen
assertThat(awaitItem().roomTopic).isEqualTo(RoomTopicState.Hidden)
cancelAndIgnoreRemainingEvents()
}
}