Try to fix tests
This commit is contained in:
parent
9fdeb81e50
commit
b0d0c2e5d2
1 changed files with 8 additions and 0 deletions
|
|
@ -159,6 +159,8 @@ class RoomDetailsPresenterTests {
|
||||||
presenter.present()
|
presenter.present()
|
||||||
}.test {
|
}.test {
|
||||||
assertThat(awaitItem().canInvite).isFalse()
|
assertThat(awaitItem().canInvite).isFalse()
|
||||||
|
|
||||||
|
cancelAndIgnoreRemainingEvents()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -172,6 +174,8 @@ class RoomDetailsPresenterTests {
|
||||||
presenter.present()
|
presenter.present()
|
||||||
}.test {
|
}.test {
|
||||||
assertThat(awaitItem().canInvite).isFalse()
|
assertThat(awaitItem().canInvite).isFalse()
|
||||||
|
|
||||||
|
cancelAndIgnoreRemainingEvents()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -289,6 +293,8 @@ class RoomDetailsPresenterTests {
|
||||||
}.test {
|
}.test {
|
||||||
// Initially false, and no further events
|
// Initially false, and no further events
|
||||||
assertThat(awaitItem().canEdit).isFalse()
|
assertThat(awaitItem().canEdit).isFalse()
|
||||||
|
|
||||||
|
cancelAndIgnoreRemainingEvents()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -305,6 +311,8 @@ class RoomDetailsPresenterTests {
|
||||||
}.test {
|
}.test {
|
||||||
// The initial state is "hidden" and no further state changes happen
|
// The initial state is "hidden" and no further state changes happen
|
||||||
assertThat(awaitItem().roomTopic).isEqualTo(RoomTopicState.Hidden)
|
assertThat(awaitItem().roomTopic).isEqualTo(RoomTopicState.Hidden)
|
||||||
|
|
||||||
|
cancelAndIgnoreRemainingEvents()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue