[#1505] Removed wrapping of reply URIs into first element, added comments to transmogrifier tests.

This commit is contained in:
Ivan Tashkinov 2020-02-09 17:34:48 +03:00
commit 24e49d14f2
3 changed files with 7 additions and 19 deletions

View file

@ -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