diff options
author | eugenijm <eugenijm@protonmail.com> | 2019-03-28 14:52:09 +0300 |
---|---|---|
committer | eugenijm <eugenijm@protonmail.com> | 2019-03-28 18:55:16 +0300 |
commit | cd90695a349f33b84f287794bae6070e9eec446a (patch) | |
tree | 92fc170ff80b7c066f7f795b1a3e91f81279edf2 /test/web/mastodon_api | |
parent | 55d086b52077a220aef60c8d9071aea990431d74 (diff) | |
download | pleroma-cd90695a349f33b84f287794bae6070e9eec446a.tar.gz pleroma-cd90695a349f33b84f287794bae6070e9eec446a.zip |
Add PUT /api/pleroma/notification_settings endpoint
Diffstat (limited to 'test/web/mastodon_api')
-rw-r--r-- | test/web/mastodon_api/account_view_test.exs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/web/mastodon_api/account_view_test.exs b/test/web/mastodon_api/account_view_test.exs index 6dc60afe9..aa6a1e960 100644 --- a/test/web/mastodon_api/account_view_test.exs +++ b/test/web/mastodon_api/account_view_test.exs @@ -71,6 +71,20 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do assert expected == AccountView.render("account.json", %{user: user}) end + test "Represent the user account for the account owner" do + user = insert(:user) + + notification_settings = %{ + "remote" => true, + "local" => true, + "followers" => true, + "follows" => true + } + + assert %{pleroma: %{notification_settings: ^notification_settings}} = + AccountView.render("account.json", %{user: user, for: user}) + end + test "Represent a Service(bot) account" do user = insert(:user, %{ |