Add specs for AccountController.mutes, AccountController.blocks, AccountController.mutes, AccountController.endorsements
This commit is contained in:
parent
ab185d3ea4
commit
7e0b42d99f
3 changed files with 41 additions and 25 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue