tests: chase notification setting changes
authorWilliam Pitcock <nenolod@dereferenced.org>
Sat, 25 May 2019 05:22:13 +0000 (05:22 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Sat, 25 May 2019 05:22:13 +0000 (05:22 +0000)
test/web/mastodon_api/account_view_test.exs
test/web/twitter_api/util_controller_test.exs

index aaf2261bbd2f6f98e76c73fca2edd744a2bbca13..6f8480ee2badb460a43614e1cc6ba79392c44c9e 100644 (file)
@@ -81,7 +81,9 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
       "remote" => true,
       "local" => true,
       "followers" => true,
-      "follows" => true
+      "follows" => true,
+      "non_follows" => true,
+      "non_followers" => true
     }
 
     privacy = user.info.default_scope
index 2cd82b3e77839a2d9774030d0ca58db074304e8a..ca0b8cc260a72dee21c1dbce79a8726af7346821 100644 (file)
@@ -110,8 +110,14 @@ 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 %{
+               "remote" => false,
+               "local" => true,
+               "followers" => false,
+               "follows" => true,
+               "non_follows" => true,
+               "non_followers" => true
+             } == user.info.notification_settings
     end
   end