X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;ds=sidebyside;f=test%2Fpleroma%2Femoji_test.exs;h=deaab1e8b43ac02e542ffb4a70006933f2c93e5a;hb=03a00d005a74c1f74f403ca31dff0b3eee20d386;hp=9cfd7b46b3d93ca14c98294e445085dce2357259;hpb=a010c5b16a395d823a98cd088c83acd098930ade;p=akkoma
diff --git a/test/pleroma/emoji_test.exs b/test/pleroma/emoji_test.exs
index 9cfd7b46b..deaab1e8b 100644
--- a/test/pleroma/emoji_test.exs
+++ b/test/pleroma/emoji_test.exs
@@ -1,9 +1,9 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2017-2020 Pleroma Authors
+# Copyright © 2017-2021 Pleroma Authors
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.EmojiTest do
- use ExUnit.Case
+ use ExUnit.Case, async: true
alias Pleroma.Emoji
describe "is_unicode_emoji?/1" do
@@ -11,7 +11,7 @@ defmodule Pleroma.EmojiTest do
refute Emoji.is_unicode_emoji?("X")
refute Emoji.is_unicode_emoji?("ã")
- # Only accept fully-qualified (RGI) emoji
+ # Accept fully-qualified and unqualified emoji
# See http://www.unicode.org/reports/tr51/
refute Emoji.is_unicode_emoji?("â¤")
refute Emoji.is_unicode_emoji?("â")
@@ -20,6 +20,7 @@ defmodule Pleroma.EmojiTest do
assert Emoji.is_unicode_emoji?("ð¤°")
assert Emoji.is_unicode_emoji?("â¤ï¸")
assert Emoji.is_unicode_emoji?("ð³ï¸ââ§ï¸")
+ assert Emoji.is_unicode_emoji?("ð«µ")
# Additionally, we accept regional indicators.
assert Emoji.is_unicode_emoji?("ðµ")