summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2020-11-17 19:15:11 +0000
committerMark Felder <feld@FreeBSD.org>2020-11-17 20:20:00 +0000
commit67a6abd071fd4e9f62c032fe952b65b957140bc5 (patch)
treed45e0b5535b6b0826569f17f6144298be6d5623d /test
parent80e21903d4abd3cd87694c3faaeff3a6afd2c8dc (diff)
downloadpleroma-67a6abd071fd4e9f62c032fe952b65b957140bc5.tar.gz
pleroma-67a6abd071fd4e9f62c032fe952b65b957140bc5.zip
Update OpenAPI spec/schema and test to verify support for pleroma:emoji_reaction subscriptions
Diffstat (limited to 'test')
-rw-r--r--test/pleroma/web/mastodon_api/controllers/subscription_controller_test.exs13
1 files changed, 11 insertions, 2 deletions
diff --git a/test/pleroma/web/mastodon_api/controllers/subscription_controller_test.exs b/test/pleroma/web/mastodon_api/controllers/subscription_controller_test.exs
index d36bb1ae8..6e9369b3f 100644
--- a/test/pleroma/web/mastodon_api/controllers/subscription_controller_test.exs
+++ b/test/pleroma/web/mastodon_api/controllers/subscription_controller_test.exs
@@ -59,7 +59,12 @@ defmodule Pleroma.Web.MastodonAPI.SubscriptionControllerTest do
conn
|> post("/api/v1/push/subscription", %{
"data" => %{
- "alerts" => %{"mention" => true, "test" => true, "pleroma:chat_mention" => true}
+ "alerts" => %{
+ "mention" => true,
+ "test" => true,
+ "pleroma:chat_mention" => true,
+ "pleroma:emoji_reaction" => true
+ }
},
"subscription" => @sub
})
@@ -68,7 +73,11 @@ defmodule Pleroma.Web.MastodonAPI.SubscriptionControllerTest do
[subscription] = Pleroma.Repo.all(Subscription)
assert %{
- "alerts" => %{"mention" => true, "pleroma:chat_mention" => true},
+ "alerts" => %{
+ "mention" => true,
+ "pleroma:chat_mention" => true,
+ "pleroma:emoji_reaction" => true
+ },
"endpoint" => subscription.endpoint,
"id" => to_string(subscription.id),
"server_key" => @server_key