Federate emoji out.

This commit is contained in:
Roger Braun 2017-09-16 16:14:23 +02:00
commit 884006a9e9
6 changed files with 26 additions and 5 deletions

View file

@ -49,6 +49,12 @@ defmodule Pleroma.FormatterTest do
expected_result = "I love <img height='32px' width='32px' alt='moominmamma' title='moominmamma' src='/finmoji/128px/moominmamma-128.png' />"
assert Formatter.finmojifiy(text) == expected_result
assert Formatter.emojify(text) == expected_result
end
test "it returns the emoji used in the text" do
text = "I love :moominmamma:"
assert Formatter.get_emoji(text) == [{"moominmamma", "/finmoji/128px/moominmamma-128.png"}]
end
end