diff --git a/platforms/ios/lib/WysiwygComposer/Tests/WysiwygComposerTests/Components/WysiwygComposerView/WysiwygComposerViewModelTests+MentionsState.swift b/platforms/ios/lib/WysiwygComposer/Tests/WysiwygComposerTests/Components/WysiwygComposerView/WysiwygComposerViewModelTests+MentionsState.swift index ecc76277b..4eb6571b5 100644 --- a/platforms/ios/lib/WysiwygComposer/Tests/WysiwygComposerTests/Components/WysiwygComposerView/WysiwygComposerViewModelTests+MentionsState.swift +++ b/platforms/ios/lib/WysiwygComposer/Tests/WysiwygComposerTests/Components/WysiwygComposerView/WysiwygComposerViewModelTests+MentionsState.swift @@ -93,7 +93,7 @@ extension WysiwygComposerViewModelTests { MentionsState(userIds: ["@alice:matrix.org"], roomIds: [], roomAliases: [], hasAtRoomMention: false)) } - func testMultipleMentionsBySettingThemWithContent() { + func testMultipleMentionsBySettingThemWithHtmlContent() { viewModel.setHtmlContent( """
Alice, \ @@ -103,12 +103,14 @@ extension WysiwygComposerViewModelTests { @room
""" ) - var mentionState = viewModel.getMentionsState() + let mentionState = viewModel.getMentionsState() XCTAssertEqual(Set(mentionState.userIds), ["@alice:matrix.org", "@bob:matrix.org"]) XCTAssertEqual(mentionState.roomAliases, ["#room:matrix.org"]) XCTAssertEqual(mentionState.roomIds, ["!room:matrix.org"]) XCTAssertTrue(mentionState.hasAtRoomMention) - + } + + func testMultipleMentionsBySettingThemWithMarkdownContent() { viewModel.setMarkdownContent( """ [Room](https://matrix.to/#/!room:matrix.org), \ @@ -118,7 +120,7 @@ extension WysiwygComposerViewModelTests { @room """ ) - mentionState = viewModel.getMentionsState() + let mentionState = viewModel.getMentionsState() XCTAssertEqual(Set(mentionState.userIds), ["@alice:matrix.org", "@bob:matrix.org"]) XCTAssertEqual(mentionState.roomAliases, ["#room:matrix.org"]) XCTAssertEqual(mentionState.roomIds, ["!room:matrix.org"])