diff options
author | Mark Felder <feld@FreeBSD.org> | 2020-10-14 09:54:07 -0500 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2020-10-14 09:54:07 -0500 |
commit | 3242cfef20ea05bae53761ffaf54347c4c6f7bda (patch) | |
tree | fb916ac086ec8ca7bc1ac719f3fd014d92044515 /test | |
parent | 4ead0d564fa60b1a908f6237474250d6bda85ae9 (diff) | |
download | pleroma-3242cfef20ea05bae53761ffaf54347c4c6f7bda.tar.gz |
Undo API breaking changes
Diffstat (limited to 'test')
-rw-r--r-- | test/pleroma/web/mastodon_api/update_credentials_test.exs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/pleroma/web/mastodon_api/update_credentials_test.exs b/test/pleroma/web/mastodon_api/update_credentials_test.exs index 383d351cf..fe462caa3 100644 --- a/test/pleroma/web/mastodon_api/update_credentials_test.exs +++ b/test/pleroma/web/mastodon_api/update_credentials_test.exs @@ -147,14 +147,14 @@ defmodule Pleroma.Web.MastodonAPI.UpdateCredentialsTest do end test "updates the user's discoverable status", %{conn: conn} do - assert %{"source" => %{"pleroma" => %{"is_discoverable" => true}}} = + assert %{"source" => %{"pleroma" => %{"discoverable" => true}}} = conn - |> patch("/api/v1/accounts/update_credentials", %{is_discoverable: "true"}) + |> patch("/api/v1/accounts/update_credentials", %{discoverable: "true"}) |> json_response_and_validate_schema(:ok) - assert %{"source" => %{"pleroma" => %{"is_discoverable" => false}}} = + assert %{"source" => %{"pleroma" => %{"discoverable" => false}}} = conn - |> patch("/api/v1/accounts/update_credentials", %{is_discoverable: "false"}) + |> patch("/api/v1/accounts/update_credentials", %{discoverable: "false"}) |> json_response_and_validate_schema(:ok) end |