X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fweb%2Fcommon_api%2Fcommon_api_utils_test.exs;h=ab4c62b35f8e5cded5df8347238ab6e892262d3c;hb=14ef35f402299d58b5d4dc9c927e6da6e00a7ddb;hp=df9955d5deb3a953548b34ea0c8d3bf3b4b19d08;hpb=501af917b5a9611a4b1fabb4944b3af96b676568;p=akkoma
diff --git a/test/web/common_api/common_api_utils_test.exs b/test/web/common_api/common_api_utils_test.exs
index df9955d5d..ab4c62b35 100644
--- a/test/web/common_api/common_api_utils_test.exs
+++ b/test/web/common_api/common_api_utils_test.exs
@@ -128,7 +128,16 @@ defmodule Pleroma.Web.CommonAPI.UtilsTest do
assert output == expected
text = "[b]hello world![/b]\n\nsecond paragraph!"
- expected = "hello world!
second paragraph!"
+ expected = "hello world!
\n
\nsecond paragraph!"
+
+ {output, [], []} = Utils.format_input(text, "text/bbcode")
+
+ assert output == expected
+
+ text = "[b]hello world![/b]\n\nsecond paragraph!"
+
+ expected =
+ "hello world!
\n
\n<strong>second paragraph!</strong>"
{output, [], []} = Utils.format_input(text, "text/bbcode")