X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fformatter_test.exs;h=c2b3d4ac055a06c965334b19390b9db465479f2b;hb=a6fd9c4b0083889d327b0954febd7bb233dfccb1;hp=2cf1f3f8e7cf2685bd9585be4637034b41c17d9a;hpb=a9baf955fa47b58ec9ae1f90da14abc10379dcde;p=akkoma
diff --git a/test/formatter_test.exs b/test/formatter_test.exs
index 2cf1f3f8e..c2b3d4ac0 100644
--- a/test/formatter_test.exs
+++ b/test/formatter_test.exs
@@ -78,6 +78,13 @@ defmodule Pleroma.FormatterTest do
"https://en.wikipedia.org/wiki/Duff's_device"
assert Formatter.add_links({[], text}) |> Formatter.finalize() == expected
+
+ text = "https://pleroma.com https://pleroma.com/sucks"
+
+ expected =
+ "https://pleroma.com https://pleroma.com/sucks"
+
+ assert Formatter.add_links({[], text}) |> Formatter.finalize() == expected
end
end
@@ -102,9 +109,9 @@ defmodule Pleroma.FormatterTest do
Enum.each(subs, fn {uuid, _} -> assert String.contains?(text, uuid) end)
expected_text =
- "@gsimg According to @gsimg According to @archaeme, that is @daggsy. Also hello @archaeme, that is @daggsy. Also hello @archaeme"