diff options
author | Ariadne Conill <ariadne@dereferenced.org> | 2019-10-19 17:53:52 +0000 |
---|---|---|
committer | Ariadne Conill <ariadne@dereferenced.org> | 2019-10-19 23:21:37 +0000 |
commit | ba92522c6902c2992f0b9fa50aaded1087e125ba (patch) | |
tree | c503f81325a6d0b2f33310700bfa3e59d0d7084c | |
parent | 52d56ed705232b7b3b43d78aaef7c5170a5c1217 (diff) | |
download | pleroma-ba92522c6902c2992f0b9fa50aaded1087e125ba.tar.gz pleroma-ba92522c6902c2992f0b9fa50aaded1087e125ba.zip |
tests: add test to ensure invisible actors are rendered with the invisible hint set to true
-rw-r--r-- | test/web/activity_pub/views/user_view_test.exs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/web/activity_pub/views/user_view_test.exs b/test/web/activity_pub/views/user_view_test.exs index 3155749aa..a31b4c92e 100644 --- a/test/web/activity_pub/views/user_view_test.exs +++ b/test/web/activity_pub/views/user_view_test.exs @@ -76,6 +76,12 @@ defmodule Pleroma.Web.ActivityPub.UserViewTest do assert result["image"]["url"] == "https://somebanner" 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 test "local users have a usable endpoints structure" do user = insert(:user) |