Procházet zdrojové kódy

tests: add test to ensure invisible actors are rendered with the invisible hint set to true

merge-requests/1875/head
Ariadne Conill před 4 roky
rodič
revize
ba92522c69
1 změnil soubory, kde provedl 6 přidání a 0 odebrání
  1. +6
    -0
      test/web/activity_pub/views/user_view_test.exs

+ 6
- 0
test/web/activity_pub/views/user_view_test.exs Zobrazit soubor

@@ -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)


Načítá se…
Zrušit
Uložit