X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;ds=inline;f=test%2Fpleroma%2Femoji_test.exs;h=027a8132f768fa827f00ae6f41513a8ffc04086f;hb=25676c84be5d7126f17e009ee87abd2df42fa65c;hp=97af252808434e773f9be1a253e21da27aa18c89;hpb=8fb259e7395d4dd2bdac407b7eca0840ce490a99;p=akkoma
diff --git a/test/pleroma/emoji_test.exs b/test/pleroma/emoji_test.exs
index 97af25280..027a8132f 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
@@ -20,6 +20,11 @@ defmodule Pleroma.EmojiTest do
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?("ðµ")
+ assert Emoji.is_unicode_emoji?("ð´")
+ assert Emoji.is_unicode_emoji?("ð¬")
end
end