summaryrefslogtreecommitdiff
path: root/test/web/push/impl_test.exs
diff options
context:
space:
mode:
authorfeld <feld@feld.me>2020-07-15 15:22:39 +0000
committerfeld <feld@feld.me>2020-07-15 15:22:39 +0000
commit00f9b53f07346d052adab105bde3428c98fc4660 (patch)
tree67e501144cffd4c3e70f8dc094793c6b2d2fb7b5 /test/web/push/impl_test.exs
parent0fe36b311c010f9a4bd3c1600ce874c5403a7368 (diff)
parent34d1d3e93e8642f2b784b5b957551af068c0f7ba (diff)
downloadpleroma-00f9b53f07346d052adab105bde3428c98fc4660.tar.gz
pleroma-00f9b53f07346d052adab105bde3428c98fc4660.zip
Merge branch 'refactor/notification_settings' into 'develop'
Refactor notification settings See merge request pleroma/pleroma!2602
Diffstat (limited to 'test/web/push/impl_test.exs')
-rw-r--r--test/web/push/impl_test.exs12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/web/push/impl_test.exs b/test/web/push/impl_test.exs
index b48952b29..aeb5c1fbd 100644
--- a/test/web/push/impl_test.exs
+++ b/test/web/push/impl_test.exs
@@ -238,9 +238,11 @@ defmodule Pleroma.Web.Push.ImplTest do
}
end
- test "hides details for notifications when privacy option enabled" do
+ test "hides contents of notifications when option enabled" do
user = insert(:user, nickname: "Bob")
- user2 = insert(:user, nickname: "Rob", notification_settings: %{privacy_option: true})
+
+ user2 =
+ insert(:user, nickname: "Rob", notification_settings: %{hide_notification_contents: true})
{:ok, activity} =
CommonAPI.post(user, %{
@@ -284,9 +286,11 @@ defmodule Pleroma.Web.Push.ImplTest do
}
end
- test "returns regular content for notifications with privacy option disabled" do
+ test "returns regular content when hiding contents option disabled" do
user = insert(:user, nickname: "Bob")
- user2 = insert(:user, nickname: "Rob", notification_settings: %{privacy_option: false})
+
+ user2 =
+ insert(:user, nickname: "Rob", notification_settings: %{hide_notification_contents: false})
{:ok, activity} =
CommonAPI.post(user, %{