Fix test.
This commit is contained in:
parent
290a05439e
commit
35de787326
1 changed files with 2 additions and 2 deletions
|
|
@ -82,10 +82,10 @@ class MentionSpanProviderTest {
|
|||
fun `getting mention span for @room should return a MentionSpan with normal colors`() {
|
||||
permalinkParser.givenResult(
|
||||
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.textColor).isEqualTo(otherColor)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue