code style
little fix
This commit is contained in:
parent
3601f03147
commit
17d3d05a71
3 changed files with 9 additions and 5 deletions
|
|
@ -7,6 +7,7 @@ defmodule Pleroma.EmojiTest do
|
|||
emoji_list = Emoji.get_all()
|
||||
{:ok, emoji_list: emoji_list}
|
||||
end
|
||||
|
||||
test "first emoji", %{emoji_list: emoji_list} do
|
||||
[emoji | _others] = emoji_list
|
||||
{code, path, tags} = emoji
|
||||
|
|
@ -19,7 +20,7 @@ defmodule Pleroma.EmojiTest do
|
|||
|
||||
test "random emoji", %{emoji_list: emoji_list} do
|
||||
emoji = Enum.random(emoji_list)
|
||||
{code, path, tags} = emoji
|
||||
{code, path, tags} = emoji
|
||||
|
||||
assert tuple_size(emoji) == 3
|
||||
assert is_binary(code)
|
||||
|
|
|
|||
|
|
@ -272,7 +272,10 @@ defmodule Pleroma.FormatterTest do
|
|||
text = "I love :moominmamma:"
|
||||
|
||||
tag = Keyword.get(Application.get_env(:pleroma, :emoji), :finmoji_tag)
|
||||
assert Formatter.get_emoji(text) == [{"moominmamma", "/finmoji/128px/moominmamma-128.png", tag}]
|
||||
|
||||
assert Formatter.get_emoji(text) == [
|
||||
{"moominmamma", "/finmoji/128px/moominmamma-128.png", tag}
|
||||
]
|
||||
end
|
||||
|
||||
test "it returns a nice empty result when no emojis are present" do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue