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/twitter_api/util_controller_test.exs | |
parent | dc39d8d3fb941bad9fe26586c321bb00a0b92fe4 (diff) | |
download | pleroma-3601f03147bd104f6acff64e7c8d5d4d3e1f53a2.tar.gz |
Adding tag to emoji ets table
changes in apis
Diffstat (limited to 'test/web/twitter_api/util_controller_test.exs')
-rw-r--r-- | test/web/twitter_api/util_controller_test.exs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/web/twitter_api/util_controller_test.exs b/test/web/twitter_api/util_controller_test.exs index 832fdc096..1063ad28f 100644 --- a/test/web/twitter_api/util_controller_test.exs +++ b/test/web/twitter_api/util_controller_test.exs @@ -164,4 +164,25 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do assert response == Jason.encode!(config |> Enum.into(%{})) |> Jason.decode!() end end + + describe "/api/pleroma/emoji" do + test "returns json with custom emoji with tags", %{conn: conn} do + [emoji | _body] = + conn + |> get("/api/pleroma/emoji") + |> json_response(200) + + [key] = Map.keys(emoji) + + %{ + ^key => %{ + "image_url" => url, + "tags" => tags + } + } = emoji + + assert is_binary(url) + assert is_list(tags) + end + end end |