mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 01:19:33 +00:00
Fix test compilation.
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ class CustomReactionPresenterTests {
|
|||||||
assertThat(initialState.selectedEventId).isNull()
|
assertThat(initialState.selectedEventId).isNull()
|
||||||
val reactions = aTimelineItemReactions(count = 1, isHighlighted = true)
|
val reactions = aTimelineItemReactions(count = 1, isHighlighted = true)
|
||||||
val key = reactions.reactions.first().key
|
val key = reactions.reactions.first().key
|
||||||
initialState.eventSink(CustomReactionEvents.UpdateSelectedEvent(aTimelineItemEvent(eventId = AN_EVENT_ID, timelineItemReactions = reactions)))
|
initialState.eventSink(CustomReactionEvents.ShowCustomReactionSheet(aTimelineItemEvent(eventId = AN_EVENT_ID, timelineItemReactions = reactions)))
|
||||||
val stateWithSelectedEmojis = awaitItem()
|
val stateWithSelectedEmojis = awaitItem()
|
||||||
assertThat(stateWithSelectedEmojis.selectedEventId).isEqualTo(AN_EVENT_ID)
|
assertThat(stateWithSelectedEmojis.selectedEventId).isEqualTo(AN_EVENT_ID)
|
||||||
assertThat(stateWithSelectedEmojis.selectedEmoji).contains(key)
|
assertThat(stateWithSelectedEmojis.selectedEmoji).contains(key)
|
||||||
|
|||||||
Reference in New Issue
Block a user