summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/controllers/subscription_controller_test.exs
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2020-06-30 15:09:03 -0500
committerMark Felder <feld@FreeBSD.org>2020-06-30 15:09:03 -0500
commit0883a706dc376fdfb7de9df1366803e87c8e7c98 (patch)
treedc43f7b09dddd3300efd7b3ebbc0e82e60a978c5 /test/web/mastodon_api/controllers/subscription_controller_test.exs
parent954acdda2072cac343409b3d17d831b86ac6a18c (diff)
parentb9e6ad571ac5925431466d6e6b27c0b372bb7727 (diff)
downloadpleroma-0883a706dc376fdfb7de9df1366803e87c8e7c98.tar.gz
pleroma-0883a706dc376fdfb7de9df1366803e87c8e7c98.zip
Merge branch 'develop' into activation-meta
Diffstat (limited to 'test/web/mastodon_api/controllers/subscription_controller_test.exs')
-rw-r--r--test/web/mastodon_api/controllers/subscription_controller_test.exs6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/web/mastodon_api/controllers/subscription_controller_test.exs b/test/web/mastodon_api/controllers/subscription_controller_test.exs
index 4aa260663..d36bb1ae8 100644
--- a/test/web/mastodon_api/controllers/subscription_controller_test.exs
+++ b/test/web/mastodon_api/controllers/subscription_controller_test.exs
@@ -58,7 +58,9 @@ defmodule Pleroma.Web.MastodonAPI.SubscriptionControllerTest do
result =
conn
|> post("/api/v1/push/subscription", %{
- "data" => %{"alerts" => %{"mention" => true, "test" => true}},
+ "data" => %{
+ "alerts" => %{"mention" => true, "test" => true, "pleroma:chat_mention" => true}
+ },
"subscription" => @sub
})
|> json_response_and_validate_schema(200)
@@ -66,7 +68,7 @@ defmodule Pleroma.Web.MastodonAPI.SubscriptionControllerTest do
[subscription] = Pleroma.Repo.all(Subscription)
assert %{
- "alerts" => %{"mention" => true},
+ "alerts" => %{"mention" => true, "pleroma:chat_mention" => true},
"endpoint" => subscription.endpoint,
"id" => to_string(subscription.id),
"server_key" => @server_key