projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
otp version
[akkoma]
/
test
/
emoji
/
formatter_test.exs
diff --git
a/test/emoji/formatter_test.exs
b/test/emoji/formatter_test.exs
index 3e37ae3f002becf4f2729537860f5b420cb95f9b..3bfee9420ba1eadf6e88be2dd4edf541b912257a 100644
(file)
--- a/
test/emoji/formatter_test.exs
+++ b/
test/emoji/formatter_test.exs
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-20
18
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-20
20
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Emoji.FormatterTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Emoji.FormatterTest do
@@
-28,10
+28,7
@@
defmodule Pleroma.Emoji.FormatterTest do
}
|> Pleroma.Emoji.build()
}
|> Pleroma.Emoji.build()
- expected_result =
- "I love <img class=\"emoji\" alt=\"\" title=\"\" src=\"https://placehold.it/1x1\" />"
-
- assert Formatter.emojify(text, [{custom_emoji.code, custom_emoji}]) == expected_result
+ refute Formatter.emojify(text, [{custom_emoji.code, custom_emoji}]) =~ text
end
end
end
end