diff options
author | Alex S <alex.strizhakov@gmail.com> | 2019-04-01 17:54:30 +0700 |
---|---|---|
committer | Alex S <alex.strizhakov@gmail.com> | 2019-04-01 17:54:30 +0700 |
commit | 17d3d05a7196140b62dd791af8d7ced8b0ad9fa1 (patch) | |
tree | e8ae5a592e5c6d4407903020b76730423650c87a /test | |
parent | 3601f03147bd104f6acff64e7c8d5d4d3e1f53a2 (diff) | |
download | pleroma-17d3d05a7196140b62dd791af8d7ced8b0ad9fa1.tar.gz |
code style
little fix
Diffstat (limited to 'test')
-rw-r--r-- | test/emoji_test.exs | 3 | ||||
-rw-r--r-- | test/formatter_test.exs | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/test/emoji_test.exs b/test/emoji_test.exs index c9c32e20b..a90213d7d 100644 --- a/test/emoji_test.exs +++ b/test/emoji_test.exs @@ -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) diff --git a/test/formatter_test.exs b/test/formatter_test.exs index e67042a5f..38430e170 100644 --- a/test/formatter_test.exs +++ b/test/formatter_test.exs @@ -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 |