aboutsummaryrefslogtreecommitdiff
path: root/test/notification_test.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-03-19 18:00:55 +0100
committerlain <lain@soykaf.club>2020-03-19 18:00:55 +0100
commit3c2c32b460c2d942d085725d14e77a96c4a01e4c (patch)
tree1542ba8f33738650c561a1f944ae7ce9e16dd116 /test/notification_test.exs
parentac5c2b66b9f106bad117708cf74e3007c434d09e (diff)
parentd4bafabfd14887e61eb5bc1d877035dcfebbd33f (diff)
downloadpleroma-3c2c32b460c2d942d085725d14e77a96c4a01e4c.tar.gz
Merge branch 'remake-remodel' into develop
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 56a581810..81eb0e2f7 100644
--- a/test/notification_test.exs
+++ b/test/notification_test.exs
@@ -455,7 +455,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)
assert other_user not in Notification.get_notified_from_activity(activity_two)
end
@@ -485,7 +485,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
@@ -502,7 +502,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
@@ -557,7 +557,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