forked from AkkomaGang/akkoma
UserViewTest: Add basice service actor test.
This commit is contained in:
parent
8a0e797cff
commit
c3098e9c56
1 changed files with 9 additions and 0 deletions
|
@ -76,6 +76,15 @@ test "renders an invisible user with the invisible property set to true" do
|
||||||
assert %{"invisible" => true} = UserView.render("service.json", %{user: user})
|
assert %{"invisible" => true} = UserView.render("service.json", %{user: user})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
test "service has a few essential fields" do
|
||||||
|
user = insert(:user)
|
||||||
|
result = UserView.render("service.json", %{user: user})
|
||||||
|
assert result["id"]
|
||||||
|
assert result["type"] == "Application"
|
||||||
|
assert result["inbox"]
|
||||||
|
assert result["outbox"]
|
||||||
|
end
|
||||||
|
|
||||||
test "renders AKAs" do
|
test "renders AKAs" do
|
||||||
akas = ["https://i.tusooa.xyz/users/test-pleroma"]
|
akas = ["https://i.tusooa.xyz/users/test-pleroma"]
|
||||||
user = insert(:user, also_known_as: akas)
|
user = insert(:user, also_known_as: akas)
|
||||||
|
|
Loading…
Reference in a new issue