Skip to content
Snippets Groups Projects
Verified Commit 88030198 authored by Alex Gleason's avatar Alex Gleason
Browse files

Formatter: Test link with local mention

parent 5701840d
No related branches found
No related tags found
No related merge requests found
......@@ -255,6 +255,16 @@ test "it can parse mentions and return the relevant users" do
assert {_text, ^expected_mentions, []} = Formatter.linkify(text)
end
test "it parses URL containing local mention" do
_user = insert(:user, %{nickname: "lain"})
text = "https://example.com/@lain"
expected = ~S(<a href="https://example.com/@lain" rel="ugc">https://example.com/@lain</a>)
assert {^expected, [], []} = Formatter.linkify(text)
end
end
describe ".parse_tags" do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment