aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2018-06-23 13:32:03 +0200
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2018-07-30 22:01:48 +0200
commit32a55e96958e949b69578af49cf41e720916988c (patch)
tree56528ef5e76f7648cbbd60a7381c75c956a1bb19
parent1a2255ef7ed6978b10b0dabbcee1036fe06c87a7 (diff)
downloadpleroma-32a55e96958e949b69578af49cf41e720916988c.tar.gz
[Pleroma.FormatterTest] Add test for XMPP link
-rw-r--r--test/formatter_test.exs6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/formatter_test.exs b/test/formatter_test.exs
index acf0adb1c..abbd7ac93 100644
--- a/test/formatter_test.exs
+++ b/test/formatter_test.exs
@@ -85,6 +85,12 @@ defmodule Pleroma.FormatterTest do
"<a href=\"https://pleroma.com\">https://pleroma.com</a> <a href=\"https://pleroma.com/sucks\">https://pleroma.com/sucks</a>"
assert Formatter.add_links({[], text}) |> Formatter.finalize() == expected
+
+ text = "xmpp:contact@hacktivis.me"
+
+ expected = "<a href=\"xmpp:contact@hacktivis.me\">xmpp:contact@hacktivis.me</a>"
+
+ assert Formatter.add_links({[], text}) |> Formatter.finalize() == expected
end
end