diff options
author | kaniini <nenolod@gmail.com> | 2019-04-10 02:10:31 +0000 |
---|---|---|
committer | kaniini <nenolod@gmail.com> | 2019-04-10 02:10:31 +0000 |
commit | 97395e013e5dac84399769438f8b90cffa38afd5 (patch) | |
tree | 1429546e8d412f5c52b5be77115c87f1bbb831a5 /test/web/mastodon_api | |
parent | 144648de92abea7330cf264b7608634a27bb6bdf (diff) | |
parent | cd90695a349f33b84f287794bae6070e9eec446a (diff) | |
download | pleroma-97395e013e5dac84399769438f8b90cffa38afd5.tar.gz pleroma-97395e013e5dac84399769438f8b90cffa38afd5.zip |
Merge branch 'notification-pleroma-settings' into 'develop'
Notification controls
Closes #738
See merge request pleroma/pleroma!988
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, %{ |