mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-25 02:19:31 +00:00
19 lines
484 B
Elixir
19 lines
484 B
Elixir
defmodule Pleroma.Web.ActivityPub.ObjectViewTest do
|
|
use Pleroma.DataCase
|
|
import Pleroma.Factory
|
|
|
|
alias Pleroma.Web.ActivityPub.ObjectView
|
|
|
|
test "renders a note object" do
|
|
note = insert(:note)
|
|
|
|
result = ObjectView.render("object.json", %{object: note})
|
|
|
|
assert result["id"] == note.data["id"]
|
|
assert result["to"] == note.data["to"]
|
|
assert result["content"] == note.data["content"]
|
|
assert result["type"] == "Note"
|
|
assert result["@context"]
|
|
end
|
|
end
|