summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/controllers/account_controller_test.exs
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2020-04-09 20:34:21 +0400
committerEgor Kislitsyn <egor@kislitsyn.com>2020-04-13 18:17:09 +0400
commit7e0b42d99f3eb9520bc29cc29c06512c55183482 (patch)
tree0d2f4c9d553535a3c0be67f42a5fe616232cc892 /test/web/mastodon_api/controllers/account_controller_test.exs
parentab185d3ea47deb38128dc501acdf27c47c542de2 (diff)
downloadpleroma-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.exs2
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