1 defmodule Pleroma.Web.ActivityPub.ObjectViewTest do
5 alias Pleroma.Web.ActivityPub.ObjectView
7 test "renders a note object" do
10 result = ObjectView.render("object.json", %{object: note})
12 assert result["id"] == note.data["id"]
13 assert result["to"] == note.data["to"]
14 assert result["content"] == note.data["content"]
15 assert result["type"] == "Note"