diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-05-01 09:20:54 +0300 |
---|---|---|
committer | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-07-06 09:30:42 +0300 |
commit | 028a241b7dc45e31161e29ca24a34be8740a4656 (patch) | |
tree | 0404ab671bf749eb60237f1feb12c799f68f4ad5 | |
parent | da509487b21bbb627e5fdac6815ad9b3e4e4728b (diff) | |
download | pleroma-028a241b7dc45e31161e29ca24a34be8740a4656.tar.gz |
tests fixes
-rw-r--r-- | test/notification_test.exs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/notification_test.exs b/test/notification_test.exs index 898c804cb..366dc176c 100644 --- a/test/notification_test.exs +++ b/test/notification_test.exs @@ -356,7 +356,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) @@ -1157,7 +1157,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 |