mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-06 04:18:31 +00:00
Fix ComposerToolbarViewModel user suggestion selection unit test
This commit is contained in:
@@ -136,7 +136,8 @@ class ComposerToolbarViewModelTests: XCTestCase {
|
|||||||
let suggestion = SuggestionItem.user(item: .init(id: "@test:matrix.org", displayName: "Test", avatarURL: nil, range: .init()))
|
let suggestion = SuggestionItem.user(item: .init(id: "@test:matrix.org", displayName: "Test", avatarURL: nil, range: .init()))
|
||||||
viewModel.context.send(viewAction: .selectedSuggestion(suggestion))
|
viewModel.context.send(viewAction: .selectedSuggestion(suggestion))
|
||||||
|
|
||||||
XCTAssertEqual(wysiwygViewModel.content.html, "<a href=\"https://matrix.to/#/@test:matrix.org\">Test</a> ")
|
// The display name can be used for HTML injection in the rich text editor and it's useless anyway as the clients don't use it when resolving display names
|
||||||
|
XCTAssertEqual(wysiwygViewModel.content.html, "<a href=\"https://matrix.to/#/@test:matrix.org\">@test:matrix.org</a> ")
|
||||||
}
|
}
|
||||||
|
|
||||||
func testAllUsersSuggestion() {
|
func testAllUsersSuggestion() {
|
||||||
|
|||||||
Reference in New Issue
Block a user