X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fformatter_test.exs;h=bef5a2c28813b045cf8ba07cdc9ae84691140d65;hb=9ea51a6de516b37341a9566d11d0110c2d87c1b6;hp=8713ab9c22fbefdb4d761e6f62a610280f99e325;hpb=2b5d9eb10529325aef1b4aab980bd901ba6b0c70;p=akkoma
diff --git a/test/formatter_test.exs b/test/formatter_test.exs
index 8713ab9c2..bef5a2c28 100644
--- a/test/formatter_test.exs
+++ b/test/formatter_test.exs
@@ -255,36 +255,6 @@ 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(https://example.com/@lain)
-
- assert {^expected, [], []} = Formatter.linkify(text)
- end
-
- test "it correctly parses angry face D:< with mention" do
- lain =
- insert(:user, %{
- nickname: "lain@lain.com",
- ap_id: "https://lain.com/users/lain",
- id: "9qrWmR0cKniB0YU0TA"
- })
-
- text = "@lain@lain.com D:<"
-
- expected_text =
- ~S(@lain D:<)
-
- expected_mentions = [
- {"@lain@lain.com", lain}
- ]
-
- assert {^expected_text, ^expected_mentions, []} = Formatter.linkify(text)
- end
end
describe ".parse_tags" do