From: Ariadne Conill Date: Sat, 19 Oct 2019 17:53:52 +0000 (+0000) Subject: tests: add test to ensure invisible actors are rendered with the invisible hint set... X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=ba92522c6902c2992f0b9fa50aaded1087e125ba;p=akkoma tests: add test to ensure invisible actors are rendered with the invisible hint set to true --- 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)