tests fixes
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Fri, 1 May 2020 06:20:54 +0000 (09:20 +0300)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Mon, 6 Jul 2020 06:30:42 +0000 (09:30 +0300)
test/notification_test.exs

index 898c804cb8eaf04e135624e2d8067aa5b1531afb..366dc176caa4b64154594cc61f18c8ef54ec4765 100644 (file)
@@ -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