From 32a55e96958e949b69578af49cf41e720916988c Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Sat, 23 Jun 2018 13:32:03 +0200 Subject: [PATCH] [Pleroma.FormatterTest] Add test for XMPP link --- test/formatter_test.exs | 6 ++++++ 1 file changed, 6 insertions(+) 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 @@ test "turning urls into links" do "https://pleroma.com https://pleroma.com/sucks" assert Formatter.add_links({[], text}) |> Formatter.finalize() == expected + + text = "xmpp:contact@hacktivis.me" + + expected = "xmpp:contact@hacktivis.me" + + assert Formatter.add_links({[], text}) |> Formatter.finalize() == expected end end