summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api
diff options
context:
space:
mode:
authoreugenijm <eugenijm@protonmail.com>2019-03-28 14:52:09 +0300
committereugenijm <eugenijm@protonmail.com>2019-03-28 18:55:16 +0300
commitcd90695a349f33b84f287794bae6070e9eec446a (patch)
tree92fc170ff80b7c066f7f795b1a3e91f81279edf2 /test/web/mastodon_api
parent55d086b52077a220aef60c8d9071aea990431d74 (diff)
downloadpleroma-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.exs14
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, %{