mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-01-11 01:35:24 +00:00
tests: add test to ensure invisible actors are rendered with the invisible hint set to true
This commit is contained in:
parent
52d56ed705
commit
ba92522c69
1 changed files with 6 additions and 0 deletions
|
@ -76,6 +76,12 @@ defmodule Pleroma.Web.ActivityPub.UserViewTest do
|
||||||
assert result["image"]["url"] == "https://somebanner"
|
assert result["image"]["url"] == "https://somebanner"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
test "renders an invisible user with the invisible property set to true" do
|
||||||
|
user = insert(:user, %{info: %{invisible: true}})
|
||||||
|
|
||||||
|
assert %{"invisible" => true} = UserView.render("service.json", %{user: user})
|
||||||
|
end
|
||||||
|
|
||||||
describe "endpoints" do
|
describe "endpoints" do
|
||||||
test "local users have a usable endpoints structure" do
|
test "local users have a usable endpoints structure" do
|
||||||
user = insert(:user)
|
user = insert(:user)
|
||||||
|
|
Loading…
Reference in a new issue