Add finmoji.
This commit is contained in:
parent
18fb0cf983
commit
66b4fee80e
131 changed files with 83 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue