Add specs for ActorType and VisibilityScope

This commit is contained in:
Egor Kislitsyn 2020-04-07 16:18:23 +04:00
commit ab400b2ddb
No known key found for this signature in database
GPG key ID: 1B49CB15B71E7805
5 changed files with 37 additions and 9 deletions

View file

@ -106,10 +106,10 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController.UpdateCredentialsTest do
end
test "updates the user's default scope", %{conn: conn} do
conn = patch(conn, "/api/v1/accounts/update_credentials", %{default_scope: "cofe"})
conn = patch(conn, "/api/v1/accounts/update_credentials", %{default_scope: "unlisted"})
assert user_data = json_response(conn, 200)
assert user_data["source"]["privacy"] == "cofe"
assert user_data["source"]["privacy"] == "unlisted"
end
test "updates the user's hide_followers status", %{conn: conn} do