diff options
| author | lain <lain@soykaf.club> | 2020-04-06 11:59:01 +0000 |
|---|---|---|
| committer | lain <lain@soykaf.club> | 2020-04-06 11:59:01 +0000 |
| commit | 349b9d86dc25ae9514781ef2ac56953fa357a031 (patch) | |
| tree | 82fe9db708847369f7cbef107da9c6734cea8e4d /test/notification_test.exs | |
| parent | 8444e7ee9651f3b1836954a3891b5ae26ee79f99 (diff) | |
| parent | 772bc258cde11b3203ad9420f69321ccd56db91a (diff) | |
| download | pleroma-349b9d86dc25ae9514781ef2ac56953fa357a031.tar.gz pleroma-349b9d86dc25ae9514781ef2ac56953fa357a031.zip | |
Merge branch 'remake-remodel-2' into 'develop'
Ingestion Pipeline Revamp
See merge request pleroma/pleroma!2315
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 7cfa40c51..837a9dacd 100644 --- a/test/notification_test.exs +++ b/test/notification_test.exs @@ -537,7 +537,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) @@ -620,7 +620,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 @@ -637,7 +637,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 @@ -692,7 +692,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 |
