summaryrefslogtreecommitdiff
path: root/test/formatter_test.exs
diff options
context:
space:
mode:
authorRoman Chvanikov <chvanikoff@gmail.com>2019-05-08 17:08:06 +0700
committerRoman Chvanikov <chvanikoff@gmail.com>2019-05-08 17:08:06 +0700
commitb6b5b16ba4d65ecd9812b02d79f844548266eb8b (patch)
tree790623e31fed199f04168bcbddb4222a4bfb0a3a /test/formatter_test.exs
parent0f0cc2703b7ffb99c58e72782925ea4dd61db41d (diff)
parent14deed7f7d0b88d5c8ac19bb3de467429c289746 (diff)
downloadpleroma-b6b5b16ba4d65ecd9812b02d79f844548266eb8b.tar.gz
pleroma-b6b5b16ba4d65ecd9812b02d79f844548266eb8b.zip
Merge develop
Diffstat (limited to 'test/formatter_test.exs')
-rw-r--r--test/formatter_test.exs6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/formatter_test.exs b/test/formatter_test.exs
index 97eb2f583..06f4f6e50 100644
--- a/test/formatter_test.exs
+++ b/test/formatter_test.exs
@@ -147,7 +147,7 @@ defmodule Pleroma.FormatterTest do
end
test "gives a replacement for user links when the user is using Osada" do
- mike = User.get_or_fetch("mike@osada.macgirvin.com")
+ {:ok, mike} = User.get_or_fetch("mike@osada.macgirvin.com")
text = "@mike@osada.macgirvin.com test"
@@ -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