diff options
author | Alex S <alex.strizhakov@gmail.com> | 2019-04-01 17:17:57 +0700 |
---|---|---|
committer | Alex S <alex.strizhakov@gmail.com> | 2019-04-01 17:17:57 +0700 |
commit | 3601f03147bd104f6acff64e7c8d5d4d3e1f53a2 (patch) | |
tree | 9575002d2291587dc3080fdd3b65144d6535bfef /test/web/mastodon_api/mastodon_api_controller_test.exs | |
parent | dc39d8d3fb941bad9fe26586c321bb00a0b92fe4 (diff) | |
download | pleroma-3601f03147bd104f6acff64e7c8d5d4d3e1f53a2.tar.gz pleroma-3601f03147bd104f6acff64e7c8d5d4d3e1f53a2.zip |
Adding tag to emoji ets table
changes in apis
Diffstat (limited to 'test/web/mastodon_api/mastodon_api_controller_test.exs')
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index d9bcbf5a9..3b10c4a1a 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -2265,4 +2265,20 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do assert link_header =~ ~r/max_id=#{notification1.id}/ end end + + describe "custom emoji" do + test "with tags", %{conn: conn} do + [emoji | _body] = + conn + |> get("/api/v1/custom_emojis") + |> json_response(200) + + assert Map.has_key?(emoji, "shortcode") + assert Map.has_key?(emoji, "static_url") + assert Map.has_key?(emoji, "tags") + assert is_list(emoji["tags"]) + assert Map.has_key?(emoji, "url") + assert Map.has_key?(emoji, "visible_in_picker") + end + end end |