Formatter: Test link with local mention

Cette révision appartient à :
Alex Gleason 2020-06-01 19:51:41 -05:00
Parent 5701840d30
révision 880301985b
Signature inconnue de Gitea
ID de la clé GPG: 7211D1F99744FBB7

Voir le fichier

@ -255,6 +255,16 @@ defmodule Pleroma.FormatterTest 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