diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2020-04-09 20:34:21 +0400 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2020-04-13 18:17:09 +0400 |
commit | 7e0b42d99f3eb9520bc29cc29c06512c55183482 (patch) | |
tree | 0d2f4c9d553535a3c0be67f42a5fe616232cc892 /test/web/mastodon_api/controllers/account_controller_test.exs | |
parent | ab185d3ea47deb38128dc501acdf27c47c542de2 (diff) | |
download | pleroma-7e0b42d99f3eb9520bc29cc29c06512c55183482.tar.gz pleroma-7e0b42d99f3eb9520bc29cc29c06512c55183482.zip |
Add specs for AccountController.mutes, AccountController.blocks, AccountController.mutes, AccountController.endorsements
Diffstat (limited to 'test/web/mastodon_api/controllers/account_controller_test.exs')
-rw-r--r-- | test/web/mastodon_api/controllers/account_controller_test.exs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/web/mastodon_api/controllers/account_controller_test.exs b/test/web/mastodon_api/controllers/account_controller_test.exs index fa2091c5e..86136f7e4 100644 --- a/test/web/mastodon_api/controllers/account_controller_test.exs +++ b/test/web/mastodon_api/controllers/account_controller_test.exs @@ -1155,6 +1155,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountControllerTest do other_user_id = to_string(other_user.id) assert [%{"id" => ^other_user_id}] = json_response(conn, 200) + assert_schema(json_response(conn, 200), "AccountsResponse", ApiSpec.spec()) end test "getting a list of blocks" do @@ -1170,5 +1171,6 @@ defmodule Pleroma.Web.MastodonAPI.AccountControllerTest do other_user_id = to_string(other_user.id) assert [%{"id" => ^other_user_id}] = json_response(conn, 200) + assert_schema(json_response(conn, 200), "AccountsResponse", ApiSpec.spec()) end end |