projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'truncate_config_table_on_migrate_to_db' into 'develop'
[akkoma]
/
test
/
emoji_test.exs
diff --git
a/test/emoji_test.exs
b/test/emoji_test.exs
index 1fdbd0fdfd7d57880cf9992bf340975a8f7dabd3..7bdf2b6fae9974e77c931ca284ad3fd44a06048e 100644
(file)
--- a/
test/emoji_test.exs
+++ b/
test/emoji_test.exs
@@
-6,6
+6,14
@@
defmodule Pleroma.EmojiTest do
use ExUnit.Case, async: true
alias Pleroma.Emoji
use ExUnit.Case, async: true
alias Pleroma.Emoji
+ describe "is_unicode_emoji?/1" do
+ test "tells if a string is an unicode emoji" do
+ refute Emoji.is_unicode_emoji?("X")
+ assert Emoji.is_unicode_emoji?("☂")
+ assert Emoji.is_unicode_emoji?("🥺")
+ end
+ end
+
describe "get_all/0" do
setup do
emoji_list = Emoji.get_all()
describe "get_all/0" do
setup do
emoji_list = Emoji.get_all()