From: Ariadne Conill Date: Sun, 18 Aug 2019 22:21:31 +0000 (+0000) Subject: tests: activitypub: fix typo X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=a2fdc32368dec49449505ed85ebeff982afa449c;p=akkoma tests: activitypub: fix typo --- diff --git a/test/web/activity_pub/activity_pub_test.exs b/test/web/activity_pub/activity_pub_test.exs index 0377d29f6..f20cd2840 100644 --- a/test/web/activity_pub/activity_pub_test.exs +++ b/test/web/activity_pub/activity_pub_test.exs @@ -540,24 +540,24 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do test "doesn't return thread muted activities" do user = insert(:user) - activity_one = insert(:note_activity) + _activity_one = insert(:note_activity) note_two = insert(:note, data: %{"context" => "suya.."}) activity_two = insert(:note_activity, note: note_two) {:ok, _activity_two} = CommonAPI.add_mute(user, activity_two) - assert [activity_one] = ActivityPub.fetch_activities([], %{"muting_user" => user}) + assert [_activity_one] = ActivityPub.fetch_activities([], %{"muting_user" => user}) end test "returns thread muted activities when with_muted is set" do user = insert(:user) - activity_one = insert(:note_activity) + _activity_one = insert(:note_activity) note_two = insert(:note, data: %{"context" => "suya.."}) activity_two = insert(:note_activity, note: note_two) {:ok, activity_two} = CommonAPI.add_mute(user, activity_two) - assert [activity_two, activity_one] = + assert [_activity_two, _activity_one] = ActivityPub.fetch_activities([], %{"muting_user" => user, "with_muted" => true}) end