diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2018-06-23 13:32:03 +0200 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2018-07-30 22:01:48 +0200 |
commit | 32a55e96958e949b69578af49cf41e720916988c (patch) | |
tree | 56528ef5e76f7648cbbd60a7381c75c956a1bb19 | |
parent | 1a2255ef7ed6978b10b0dabbcee1036fe06c87a7 (diff) | |
download | pleroma-32a55e96958e949b69578af49cf41e720916988c.tar.gz |
[Pleroma.FormatterTest] Add test for XMPP link
-rw-r--r-- | test/formatter_test.exs | 6 |
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 |