summaryrefslogtreecommitdiff
path: root/test/notification_test.exs
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2020-04-10 07:09:28 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2020-04-10 07:09:28 +0300
commit648cc699e551324a067cd1b906df5f497ade5861 (patch)
tree3ddcee32eb0b61770709422aaa266167a8254e28 /test/notification_test.exs
parent591f7015d91b383dae1ee29576d13c0fad65cad6 (diff)
parentc433ed9dbb1db9777f235527e06c9c8bec3b1436 (diff)
downloadpleroma-648cc699e551324a067cd1b906df5f497ade5861.tar.gz
pleroma-648cc699e551324a067cd1b906df5f497ade5861.zip
Merge branch 'develop' into support/update_oban
Diffstat (limited to 'test/notification_test.exs')
-rw-r--r--test/notification_test.exs8
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