aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/formatter_test.exs8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/formatter_test.exs b/test/formatter_test.exs
index eb4affab8..9b6ee2425 100644
--- a/test/formatter_test.exs
+++ b/test/formatter_test.exs
@@ -43,4 +43,12 @@ defmodule Pleroma.FormatterTest do
assert Formatter.parse_mentions(text) == expected_result
end
+
+ test "it adds cool emoji" do
+ text = "I love :moominmamma:"
+
+ expected_result = "I love <img height='32px' width='32px' alt='moominmamma' title='moominmamma' src='#{Pleroma.Web.Endpoint.static_url}/finmoji/128px/moominmamma-128.png' />"
+
+ assert Formatter.finmojifiy(text) == expected_result
+ end
end