diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/support/factory.ex | 3 | ||||
| -rw-r--r-- | test/web/activity_pub/activity_pub_test.exs | 1 | 
2 files changed, 3 insertions, 1 deletions
| diff --git a/test/support/factory.ex b/test/support/factory.ex index dabb95141..9bbf11f08 100644 --- a/test/support/factory.ex +++ b/test/support/factory.ex @@ -51,7 +51,8 @@ defmodule Pleroma.Factory do      }      %Pleroma.Activity{ -      data: data +      data: data, +      actor: data["actor"]      }    end diff --git a/test/web/activity_pub/activity_pub_test.exs b/test/web/activity_pub/activity_pub_test.exs index 2cd33d623..f50509b63 100644 --- a/test/web/activity_pub/activity_pub_test.exs +++ b/test/web/activity_pub/activity_pub_test.exs @@ -52,6 +52,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do      test "removes doubled 'to' recipients" do        {:ok, activity} = ActivityPub.create(["user1", "user1", "user2"], %User{ap_id: "1"}, "", %{})        assert activity.data["to"] == ["user1", "user2"] +      assert activity.actor == "1"      end    end | 
