summaryrefslogtreecommitdiff
path: root/test/web/activity_pub/views
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2020-02-09 17:34:48 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2020-02-09 17:34:48 +0300
commit24e49d14f287b0daf8c2977f2228be09139e4bf3 (patch)
treef3a220c3afef989da503215c2991eb9687431791 /test/web/activity_pub/views
parent6ea3c06d8d42cd92b23c6de2d041db1cfea63b5a (diff)
downloadpleroma-24e49d14f287b0daf8c2977f2228be09139e4bf3.tar.gz
pleroma-24e49d14f287b0daf8c2977f2228be09139e4bf3.zip
[#1505] Removed wrapping of reply URIs into `first` element, added comments to transmogrifier tests.
Diffstat (limited to 'test/web/activity_pub/views')
-rw-r--r--test/web/activity_pub/views/object_view_test.exs6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/web/activity_pub/views/object_view_test.exs b/test/web/activity_pub/views/object_view_test.exs
index a9197b0c5..acc855b98 100644
--- a/test/web/activity_pub/views/object_view_test.exs
+++ b/test/web/activity_pub/views/object_view_test.exs
@@ -51,10 +51,8 @@ defmodule Pleroma.Web.ActivityPub.ObjectViewTest do
replies_uris = [self_reply1.object.data["id"]]
result = ObjectView.render("object.json", %{object: refresh_record(activity)})
- assert %{
- "type" => "Collection",
- "first" => %{"type" => "Collection", "items" => ^replies_uris}
- } = get_in(result, ["object", "replies"])
+ assert %{"type" => "Collection", "items" => ^replies_uris} =
+ get_in(result, ["object", "replies"])
end
end