mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Rename test because method has been renamed.
This commit is contained in:
+6
-6
@@ -51,7 +51,7 @@ class MarkdownTextEditorStateTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `insertMention - room alias - with member but failed PermalinkBuilder result`() {
|
fun `insertSuggestion - room alias - with member but failed PermalinkBuilder result`() {
|
||||||
val state = MarkdownTextEditorState(initialText = "Hello #", initialFocus = true).apply {
|
val state = MarkdownTextEditorState(initialText = "Hello #", initialFocus = true).apply {
|
||||||
currentSuggestion = Suggestion(start = 6, end = 7, type = SuggestionType.Room, text = "")
|
currentSuggestion = Suggestion(start = 6, end = 7, type = SuggestionType.Room, text = "")
|
||||||
}
|
}
|
||||||
@@ -63,7 +63,7 @@ class MarkdownTextEditorStateTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `insertMention - room alias`() {
|
fun `insertSuggestion - room alias`() {
|
||||||
val state = MarkdownTextEditorState(initialText = "Hello #", initialFocus = true).apply {
|
val state = MarkdownTextEditorState(initialText = "Hello #", initialFocus = true).apply {
|
||||||
currentSuggestion = Suggestion(start = 6, end = 7, type = SuggestionType.Room, text = "")
|
currentSuggestion = Suggestion(start = 6, end = 7, type = SuggestionType.Room, text = "")
|
||||||
}
|
}
|
||||||
@@ -75,7 +75,7 @@ class MarkdownTextEditorStateTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `insertMention - with no currentMentionSuggestion does nothing`() {
|
fun `insertSuggestion - with no currentMentionSuggestion does nothing`() {
|
||||||
val state = MarkdownTextEditorState(initialText = "Hello @", initialFocus = true)
|
val state = MarkdownTextEditorState(initialText = "Hello @", initialFocus = true)
|
||||||
val member = aRoomMember()
|
val member = aRoomMember()
|
||||||
val mention = ResolvedSuggestion.Member(member)
|
val mention = ResolvedSuggestion.Member(member)
|
||||||
@@ -88,7 +88,7 @@ class MarkdownTextEditorStateTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `insertMention - with member but failed PermalinkBuilder result`() {
|
fun `insertSuggestion - with member but failed PermalinkBuilder result`() {
|
||||||
val state = MarkdownTextEditorState(initialText = "Hello @", initialFocus = true).apply {
|
val state = MarkdownTextEditorState(initialText = "Hello @", initialFocus = true).apply {
|
||||||
currentSuggestion = Suggestion(start = 6, end = 7, type = SuggestionType.Mention, text = "")
|
currentSuggestion = Suggestion(start = 6, end = 7, type = SuggestionType.Mention, text = "")
|
||||||
}
|
}
|
||||||
@@ -105,7 +105,7 @@ class MarkdownTextEditorStateTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `insertMention - with member`() {
|
fun `insertSuggestion - with member`() {
|
||||||
val state = MarkdownTextEditorState(initialText = "Hello @", initialFocus = true).apply {
|
val state = MarkdownTextEditorState(initialText = "Hello @", initialFocus = true).apply {
|
||||||
currentSuggestion = Suggestion(start = 6, end = 7, type = SuggestionType.Mention, text = "")
|
currentSuggestion = Suggestion(start = 6, end = 7, type = SuggestionType.Mention, text = "")
|
||||||
}
|
}
|
||||||
@@ -123,7 +123,7 @@ class MarkdownTextEditorStateTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `insertMention - with @room`() {
|
fun `insertSuggestion - with @room`() {
|
||||||
val state = MarkdownTextEditorState(initialText = "Hello @", initialFocus = true).apply {
|
val state = MarkdownTextEditorState(initialText = "Hello @", initialFocus = true).apply {
|
||||||
currentSuggestion = Suggestion(start = 6, end = 7, type = SuggestionType.Mention, text = "")
|
currentSuggestion = Suggestion(start = 6, end = 7, type = SuggestionType.Mention, text = "")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user