1 defmodule Pleroma.Web.NodeInfoTest do
2 use Pleroma.Web.ConnCase
6 test "nodeinfo shows staff accounts", %{conn: conn} do
7 user = insert(:user, %{local: true, info: %{"is_moderator" => true}})
11 |> get("/nodeinfo/2.0.json")
13 assert result = json_response(conn, 200)
15 assert user.ap_id in result["metadata"]["staffAccounts"]