Revert adding extra alert types here
authorMark Felder <feld@FreeBSD.org>
Tue, 17 Nov 2020 21:37:17 +0000 (21:37 +0000)
committerMark Felder <feld@FreeBSD.org>
Tue, 17 Nov 2020 21:37:17 +0000 (21:37 +0000)
test/pleroma/web/mastodon_api/controllers/subscription_controller_test.exs

index 955cd9912fb2cecf8283273a8ec99037c651868d..dd2f9a86ece8afebddc26f241f59461331e4065b 100644 (file)
@@ -176,16 +176,7 @@ defmodule Pleroma.Web.MastodonAPI.SubscriptionControllerTest do
     test "returns error when push disabled ", %{conn: conn} do
       assert_error_when_disable_push do
         conn
-        |> put("/api/v1/push/subscription", %{
-          data: %{
-            "mention" => false,
-            "favourite" => false,
-            "follow" => false,
-            "reblog" => false,
-            "pleroma:chat_mention" => false,
-            "pleroma:emoji_reaction" => false
-          }
-        })
+        |> put("/api/v1/push/subscription", %{data: %{"alerts" => %{"mention" => false}}})
         |> json_response_and_validate_schema(403)
       end
     end