mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Fix test.
This commit is contained in:
+2
-2
@@ -82,10 +82,10 @@ class MentionSpanProviderTest {
|
|||||||
fun `getting mention span for @room should return a MentionSpan with normal colors`() {
|
fun `getting mention span for @room should return a MentionSpan with normal colors`() {
|
||||||
permalinkParser.givenResult(
|
permalinkParser.givenResult(
|
||||||
PermalinkData.RoomLink(
|
PermalinkData.RoomLink(
|
||||||
roomIdOrAlias = RoomAlias("#").toRoomIdOrAlias(),
|
roomIdOrAlias = RoomAlias("#room:matrix.org").toRoomIdOrAlias(),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
val mentionSpan = mentionSpanProvider.getMentionSpanFor("@room", "#")
|
val mentionSpan = mentionSpanProvider.getMentionSpanFor("@room", "#room:matrix.org")
|
||||||
assertThat(mentionSpan.backgroundColor).isEqualTo(otherColor)
|
assertThat(mentionSpan.backgroundColor).isEqualTo(otherColor)
|
||||||
assertThat(mentionSpan.textColor).isEqualTo(otherColor)
|
assertThat(mentionSpan.textColor).isEqualTo(otherColor)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user