Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
langleyd committed Jul 18, 2024
1 parent 8251937 commit 0bb2c9e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ internal class EditorViewModelTest {
val name = "jonny"
val url = "https://matrix.to/#/@test:matrix.org"
val suggestionPattern =
SuggestionPattern(PatternKey.AT, text = "jonny", 0.toUInt(), 5.toUInt())
SuggestionPattern(PatternKey.At, text = "jonny", 0.toUInt(), 5.toUInt())
composer.givenReplaceTextResult(MockComposerUpdateFactory.create(
menuAction = MenuAction.Suggestion(suggestionPattern)
))
Expand All @@ -315,7 +315,7 @@ internal class EditorViewModelTest {
@Test
fun `when process insert @room mention at suggestion action, it returns a text update`() {
val suggestionPattern =
SuggestionPattern(PatternKey.AT, text = "room", 0.toUInt(), 4.toUInt())
SuggestionPattern(PatternKey.At, text = "room", 0.toUInt(), 4.toUInt())
composer.givenReplaceTextResult(MockComposerUpdateFactory.create(
menuAction = MenuAction.Suggestion(suggestionPattern)
))
Expand Down

0 comments on commit 0bb2c9e

Please sign in to comment.