diff options
author | lain <lain@soykaf.club> | 2020-04-17 15:51:24 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-04-17 15:51:24 +0200 |
commit | 8c2c325598dcd85f76752a17b39ce27689a65250 (patch) | |
tree | 5283acd447e60c401631aab4b01768d3f79d142e /test/web/common_api/common_api_utils_test.exs | |
parent | 372614cfd3119b589c9c47619445714e8ae6c07e (diff) | |
parent | 6936854878860d1f6d04db1cd14a00208c6a5728 (diff) | |
download | pleroma-8c2c325598dcd85f76752a17b39ce27689a65250.tar.gz |
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into remake-remodel-dms
Diffstat (limited to 'test/web/common_api/common_api_utils_test.exs')
-rw-r--r-- | test/web/common_api/common_api_utils_test.exs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/test/web/common_api/common_api_utils_test.exs b/test/web/common_api/common_api_utils_test.exs index 98cf02d49..b21445fe9 100644 --- a/test/web/common_api/common_api_utils_test.exs +++ b/test/web/common_api/common_api_utils_test.exs @@ -7,7 +7,6 @@ defmodule Pleroma.Web.CommonAPI.UtilsTest do alias Pleroma.Object alias Pleroma.Web.CommonAPI alias Pleroma.Web.CommonAPI.Utils - alias Pleroma.Web.Endpoint use Pleroma.DataCase import ExUnit.CaptureLog @@ -42,28 +41,6 @@ defmodule Pleroma.Web.CommonAPI.UtilsTest do end end - test "parses emoji from name and bio" do - {:ok, user} = UserBuilder.insert(%{name: ":blank:", bio: ":firefox:"}) - - expected = [ - %{ - "type" => "Emoji", - "icon" => %{"type" => "Image", "url" => "#{Endpoint.url()}/emoji/Firefox.gif"}, - "name" => ":firefox:" - }, - %{ - "type" => "Emoji", - "icon" => %{ - "type" => "Image", - "url" => "#{Endpoint.url()}/emoji/blank.png" - }, - "name" => ":blank:" - } - ] - - assert expected == Utils.emoji_from_profile(user) - end - describe "format_input/3" do test "works for bare text/plain" do text = "hello world!" |