Try to fix tests

This commit is contained in:
Jorge Martín 2023-08-17 16:09:46 +02:00 committed by yostyle
parent 4b0f9213d3
commit 5be6814ee5

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()
}
}