diff options
author | Sergey Suprunenko <suprunenko.s@gmail.com> | 2019-05-16 19:09:18 +0000 |
---|---|---|
committer | feld <feld@feld.me> | 2019-05-16 19:09:18 +0000 |
commit | e2b3a27204ca511a2e455a1151fdea36fdc0e53d (patch) | |
tree | 2f6f13d59fb1e42a8e932cb28d54416b297ad588 /test/web/mastodon_api/mastodon_api_controller_test.exs | |
parent | e190b3022b29753fd7682947a293775c8801d4b7 (diff) | |
download | pleroma-e2b3a27204ca511a2e455a1151fdea36fdc0e53d.tar.gz pleroma-e2b3a27204ca511a2e455a1151fdea36fdc0e53d.zip |
Add Reports to Admin API
Diffstat (limited to 'test/web/mastodon_api/mastodon_api_controller_test.exs')
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index 40e7739e7..90d67a55f 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -2129,7 +2129,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do |> get("/api/v1/pleroma/accounts/#{user.id}/favourites") |> json_response(:ok) - assert length(anonymous_response) == 0 + assert Enum.empty?(anonymous_response) end test "does not return others' favorited DM when user is not one of recipients", %{ @@ -2153,7 +2153,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do |> get("/api/v1/pleroma/accounts/#{user.id}/favourites") |> json_response(:ok) - assert length(response) == 0 + assert Enum.empty?(response) end test "paginates favorites using since_id and max_id", %{ |