diff options
author | Maksim Pechnikov <parallel588@gmail.com> | 2020-04-07 14:09:43 +0300 |
---|---|---|
committer | Maksim Pechnikov <parallel588@gmail.com> | 2020-04-07 14:09:43 +0300 |
commit | 2b7d7bbd2dc3121488592a958c29ba6a418e0104 (patch) | |
tree | d4d963f9cc8afeae63a7666acab78eae8a8a8c43 /test/notification_test.exs | |
parent | dbcfac11b45b367185a3b18a2db3e3fb07e8f20d (diff) | |
parent | 1d4ab06505ec5143dbb1d78d718fa9efd1497751 (diff) | |
download | pleroma-2b7d7bbd2dc3121488592a958c29ba6a418e0104.tar.gz pleroma-2b7d7bbd2dc3121488592a958c29ba6a418e0104.zip |
Merge branch 'develop' into issue/1276
Diffstat (limited to 'test/notification_test.exs')
-rw-r--r-- | test/notification_test.exs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/notification_test.exs b/test/notification_test.exs index c3d70c51f..f78a47af6 100644 --- a/test/notification_test.exs +++ b/test/notification_test.exs @@ -550,7 +550,7 @@ defmodule Pleroma.NotificationTest do "status" => "hey @#{other_user.nickname}!" }) - {:ok, activity_two, _} = CommonAPI.favorite(activity_one.id, third_user) + {:ok, activity_two} = CommonAPI.favorite(third_user, activity_one.id) {enabled_receivers, _disabled_receivers} = Notification.get_notified_from_activity(activity_two) @@ -633,7 +633,7 @@ defmodule Pleroma.NotificationTest do assert Enum.empty?(Notification.for_user(user)) - {:ok, _, _} = CommonAPI.favorite(activity.id, other_user) + {:ok, _} = CommonAPI.favorite(other_user, activity.id) assert length(Notification.for_user(user)) == 1 @@ -650,7 +650,7 @@ defmodule Pleroma.NotificationTest do assert Enum.empty?(Notification.for_user(user)) - {:ok, _, _} = CommonAPI.favorite(activity.id, other_user) + {:ok, _} = CommonAPI.favorite(other_user, activity.id) assert length(Notification.for_user(user)) == 1 @@ -705,7 +705,7 @@ defmodule Pleroma.NotificationTest do assert Enum.empty?(Notification.for_user(user)) - {:error, _} = CommonAPI.favorite(activity.id, other_user) + {:error, :not_found} = CommonAPI.favorite(other_user, activity.id) assert Enum.empty?(Notification.for_user(user)) end |