Merge remote-tracking branch 'official/develop' into develop
[akkoma] / test / web / activity_pub / views / object_view_test.exs
1 defmodule Pleroma.Web.ActivityPub.ObjectViewTest do
2 use Pleroma.DataCase
3 import Pleroma.Factory
4
5 alias Pleroma.Web.ActivityPub.ObjectView
6
7 test "renders a note object" do
8 note = insert(:note)
9
10 result = ObjectView.render("object.json", %{object: note})
11
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"
16 assert result["@context"]
17 end
18 end