Add specs for AccountController.mutes, AccountController.blocks, AccountController.mutes, AccountController.endorsements

This commit is contained in:
Egor Kislitsyn 2020-04-09 20:34:21 +04:00
commit 7e0b42d99f
No known key found for this signature in database
GPG key ID: 1B49CB15B71E7805
3 changed files with 41 additions and 25 deletions

View file

@ -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