diff --git a/test/pleroma/web/activity_pub/transmogrifier/emoji_react_handling_test.exs b/test/pleroma/web/activity_pub/transmogrifier/emoji_react_handling_test.exs index 9d99df27c8..83bf59c6f3 100644 --- a/test/pleroma/web/activity_pub/transmogrifier/emoji_react_handling_test.exs +++ b/test/pleroma/web/activity_pub/transmogrifier/emoji_react_handling_test.exs @@ -65,7 +65,7 @@ test "it works for incoming unqualified emoji reactions" do object = Object.get_by_ap_id(data["object"]) assert object.data["reaction_count"] == 1 - assert match?([[emoji, _]], object.data["reactions"]) + assert match?([[^emoji, _]], object.data["reactions"]) end test "it reject invalid emoji reactions" do diff --git a/test/pleroma/web/activity_pub/utils_test.exs b/test/pleroma/web/activity_pub/utils_test.exs index 2904678c15..b5cb99bcf3 100644 --- a/test/pleroma/web/activity_pub/utils_test.exs +++ b/test/pleroma/web/activity_pub/utils_test.exs @@ -560,10 +560,7 @@ test "returns the data or an emtpy list" do test "assigns report to an account" do reporter = insert(:user) target_account = insert(:user) - %{id: assigned_id} = assigned = insert(:user) - context = Utils.generate_context_id() - - target_ap_id = target_account.ap_id + %{id: assigned_id} = insert(:user) {:ok, report} = CommonAPI.report(reporter, %{account_id: target_account.id})