Merge branch 'develop' into oauth2
[akkoma] / test / formatter_test.exs
index eb4affab8e21594cc84083fde2167e82ad466de2..9b6ee2425e939b8c466fe981b08a2c260b639aa2 100644 (file)
@@ -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