summaryrefslogtreecommitdiff
path: root/test/formatter_test.exs
diff options
context:
space:
mode:
authorAlex S <alex.strizhakov@gmail.com>2019-04-01 17:17:57 +0700
committerAlex S <alex.strizhakov@gmail.com>2019-04-01 17:17:57 +0700
commit3601f03147bd104f6acff64e7c8d5d4d3e1f53a2 (patch)
tree9575002d2291587dc3080fdd3b65144d6535bfef /test/formatter_test.exs
parentdc39d8d3fb941bad9fe26586c321bb00a0b92fe4 (diff)
downloadpleroma-3601f03147bd104f6acff64e7c8d5d4d3e1f53a2.tar.gz
pleroma-3601f03147bd104f6acff64e7c8d5d4d3e1f53a2.zip
Adding tag to emoji ets table
changes in apis
Diffstat (limited to 'test/formatter_test.exs')
-rw-r--r--test/formatter_test.exs3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/formatter_test.exs b/test/formatter_test.exs
index fcdf931b7..e67042a5f 100644
--- a/test/formatter_test.exs
+++ b/test/formatter_test.exs
@@ -271,7 +271,8 @@ defmodule Pleroma.FormatterTest do
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"}]
+ tag = Keyword.get(Application.get_env(:pleroma, :emoji), :finmoji_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