summaryrefslogtreecommitdiff
path: root/test/web/twitter_api/util_controller_test.exs
diff options
context:
space:
mode:
authorkaniini <nenolod@gmail.com>2019-06-02 08:25:37 +0000
committerkaniini <nenolod@gmail.com>2019-06-02 08:25:37 +0000
commit5402d04e3cd2d45472092942fec2c9302c48f64f (patch)
tree1660d3314df49577102f26ec2025207953ff2306 /test/web/twitter_api/util_controller_test.exs
parente706b42f519fe754af980fc758be492b24e3ccde (diff)
parent45e4642a58f5299d2cd3f142aea110a474eb477f (diff)
downloadpleroma-5402d04e3cd2d45472092942fec2c9302c48f64f.tar.gz
pleroma-5402d04e3cd2d45472092942fec2c9302c48f64f.zip
Merge branch 'feature/notification-control-part-2' into 'develop'
notification controls, part 2 See merge request pleroma/pleroma!1204
Diffstat (limited to 'test/web/twitter_api/util_controller_test.exs')
-rw-r--r--test/web/twitter_api/util_controller_test.exs9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/web/twitter_api/util_controller_test.exs b/test/web/twitter_api/util_controller_test.exs
index 2cd82b3e7..cab9e5d90 100644
--- a/test/web/twitter_api/util_controller_test.exs
+++ b/test/web/twitter_api/util_controller_test.exs
@@ -102,7 +102,6 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do
conn
|> assign(:user, user)
|> put("/api/pleroma/notification_settings", %{
- "remote" => false,
"followers" => false,
"bar" => 1
})
@@ -110,8 +109,12 @@ defmodule Pleroma.Web.TwitterAPI.UtilControllerTest do
user = Repo.get(User, user.id)
- assert %{"remote" => false, "local" => true, "followers" => false, "follows" => true} ==
- user.info.notification_settings
+ assert %{
+ "followers" => false,
+ "follows" => true,
+ "non_follows" => true,
+ "non_followers" => true
+ } == user.info.notification_settings
end
end