Add tests on TimelineItemActionComparator

This commit is contained in:
Benoit Marty 2024-12-17 14:09:49 +01:00
parent dc1a7b80ff
commit f50faf8c31
2 changed files with 32 additions and 1 deletions

View file

@ -7,9 +7,12 @@
package io.element.android.features.messages.impl.actionlist.model
import androidx.annotation.VisibleForTesting
class TimelineItemActionComparator : Comparator<TimelineItemAction> {
// See order in https://www.figma.com/design/ux3tYoZV9WghC7hHT9Fhk0/Compound-iOS-Components?node-id=2946-2392
private val orderedList = listOf(
@VisibleForTesting
val orderedList = listOf(
TimelineItemAction.EndPoll,
TimelineItemAction.ViewInTimeline,
TimelineItemAction.Reply,