diff options
author | rinpatch <rinpatch@sdf.org> | 2019-12-08 13:07:05 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-12-08 13:07:05 +0000 |
commit | 8404f8c8fbc4a60473df0977bc05e2587207d811 (patch) | |
tree | bff0ee7f5d0280722cfc49748103204d08394d6b /test/notification_test.exs | |
parent | 29a3f70cba7bed31e6777832c4d2dc5c326b70c1 (diff) | |
parent | d4953474ac5546d771879c32d3a7ec40675a00a1 (diff) | |
download | pleroma-8404f8c8fbc4a60473df0977bc05e2587207d811.tar.gz pleroma-8404f8c8fbc4a60473df0977bc05e2587207d811.zip |
Merge branch 'improve-move-notificaions-api' into 'develop'
Add `with_move` query param to the notifications API
See merge request pleroma/pleroma!2032
Diffstat (limited to 'test/notification_test.exs')
-rw-r--r-- | test/notification_test.exs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/notification_test.exs b/test/notification_test.exs index 34096f0b1..827ac4f06 100644 --- a/test/notification_test.exs +++ b/test/notification_test.exs @@ -643,13 +643,17 @@ defmodule Pleroma.NotificationTest do Pleroma.Web.ActivityPub.ActivityPub.move(old_user, new_user) ObanHelpers.perform_all() + assert [] = Notification.for_user(follower) + assert [ %{ activity: %{ data: %{"type" => "Move", "actor" => ^old_ap_id, "target" => ^new_ap_id} } } - ] = Notification.for_user(follower) + ] = Notification.for_user(follower, %{with_move: true}) + + assert [] = Notification.for_user(other_follower) assert [ %{ @@ -657,7 +661,7 @@ defmodule Pleroma.NotificationTest do data: %{"type" => "Move", "actor" => ^old_ap_id, "target" => ^new_ap_id} } } - ] = Notification.for_user(other_follower) + ] = Notification.for_user(other_follower, %{with_move: true}) end end |