diff options
author | rinpatch <rinpatch@sdf.org> | 2020-06-10 12:05:45 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-06-10 12:05:45 +0000 |
commit | 7aa6c82937090ca6f2298dee0ef894954ca2f129 (patch) | |
tree | 850f22f06eccd0babae8b805fa55109b536f324c /test/web/mastodon_api/controllers/subscription_controller_test.exs | |
parent | 1b746cfbbb55cd3411e809ead246c752a43361d0 (diff) | |
parent | 064c4f86f32b626a626fbc238f09434617f57a90 (diff) | |
download | pleroma-7aa6c82937090ca6f2298dee0ef894954ca2f129.tar.gz pleroma-7aa6c82937090ca6f2298dee0ef894954ca2f129.zip |
Merge branch 'remake-remodel-dms' into 'develop'
Chats / ChatMessages
See merge request pleroma/pleroma!2429
Diffstat (limited to 'test/web/mastodon_api/controllers/subscription_controller_test.exs')
-rw-r--r-- | test/web/mastodon_api/controllers/subscription_controller_test.exs | 6 |
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 |