From: Haelwenn (lanodan) Monnier Date: Sat, 23 Jun 2018 11:32:03 +0000 (+0200) Subject: [Pleroma.FormatterTest] Add test for XMPP link X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=32a55e96958e949b69578af49cf41e720916988c;p=akkoma [Pleroma.FormatterTest] Add test for XMPP link --- 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 "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