X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;ds=inline;f=test%2Femoji_test.exs;h=1dd3c58c6c2a01216c4819234bb343008286fcf1;hb=74be4de3f6c2c34447029649526637411acfa9f3;hp=1fdbd0fdfd7d57880cf9992bf340975a8f7dabd3;hpb=b4b147000c224ffebe42264e6c60042f5b4c42b1;p=akkoma
diff --git a/test/emoji_test.exs b/test/emoji_test.exs
index 1fdbd0fdf..1dd3c58c6 100644
--- a/test/emoji_test.exs
+++ b/test/emoji_test.exs
@@ -1,11 +1,19 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2017-2019 Pleroma Authors
+# Copyright © 2017-2020 Pleroma Authors
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.EmojiTest do
- use ExUnit.Case, async: true
+ use ExUnit.Case
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()