Pleroma.Formatter: width/height to class=emoji

This commit is contained in:
Haelwenn (lanodan) Monnier 2019-02-07 16:41:20 +01:00
commit 85b5c60694
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
5 changed files with 7 additions and 7 deletions

View file

@ -248,7 +248,7 @@ defmodule Pleroma.FormatterTest do
text = "I love :firefox:"
expected_result =
"I love <img height=\"32px\" width=\"32px\" alt=\"firefox\" title=\"firefox\" src=\"/emoji/Firefox.gif\" />"
"I love <img class=\"emoji\" alt=\"firefox\" title=\"firefox\" src=\"/emoji/Firefox.gif\" />"
assert Formatter.emojify(text) == expected_result
end
@ -263,7 +263,7 @@ defmodule Pleroma.FormatterTest do
}
expected_result =
"I love <img height=\"32px\" width=\"32px\" alt=\"\" title=\"\" src=\"https://placehold.it/1x1\" />"
"I love <img class=\"emoji\" alt=\"\" title=\"\" src=\"https://placehold.it/1x1\" />"
assert Formatter.emojify(text, custom_emoji) == expected_result
end