tests: activitypub: fix broken test due to invalid child object
authorWilliam Pitcock <nenolod@dereferenced.org>
Thu, 29 Nov 2018 03:27:59 +0000 (03:27 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Tue, 4 Dec 2018 04:52:09 +0000 (04:52 +0000)
test/web/activity_pub/activity_pub_test.exs

index afdf5c06aa2aa565260390ded73ca1d4528f2f6f..231a334f92c0298e2704880fc2d627f5cfb7f0db 100644 (file)
@@ -93,7 +93,11 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
           to: ["user1", "user1", "user2"],
           actor: user,
           context: "",
-          object: %{}
+          object: %{
+            "to" => ["user1", "user1", "user2"],
+            "type" => "Note",
+            "content" => "testing"
+          }
         })
 
       assert activity.data["to"] == ["user1", "user2"]