summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Strizhakov <alex.strizhakov@gmail.com>2020-05-01 09:20:54 +0300
committerAlexander Strizhakov <alex.strizhakov@gmail.com>2020-06-17 11:31:01 +0300
commitbb7744ab5c2b0968b77c0c2d4fd436911fbf68e3 (patch)
tree73255461a39ada903898e58b17242b766d689913
parent86fd8fc1ef861da120578b76c9bd3e1a329b8b1a (diff)
-rw-r--r--test/notification_test.exs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/notification_test.exs b/test/notification_test.exs
index 84e63d669..a14d87859 100644
--- a/test/notification_test.exs
+++ b/test/notification_test.exs
@@ -346,7 +346,7 @@ defmodule Pleroma.NotificationTest do
insert(:filter, user: user, phrase: "tesla", hide: true)
{:ok, activity_one} = CommonAPI.post(user, %{"status" => "wow tesla"})
- {:ok, activity_two, _} = CommonAPI.favorite(activity_one.id, other_user)
+ {:ok, activity_two} = CommonAPI.favorite(other_user, activity_one.id)
{:ok, [notification]} = Notification.create_notifications(activity_two)
@@ -1147,7 +1147,7 @@ defmodule Pleroma.NotificationTest do
another_user = insert(:user)
{:ok, activity} = CommonAPI.post(user, %{"status" => "Give me my cofe!"})
- {:ok, _, _} = CommonAPI.favorite(activity.id, another_user)
+ {:ok, _} = CommonAPI.favorite(another_user, activity.id)
assert length(Notification.for_user(user)) == 1
end