mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-25 17:40:31 +00:00
18 lines
399 B
Elixir
18 lines
399 B
Elixir
|
defmodule Pleroma.Web.NodeInfoTest do
|
||
|
use Pleroma.Web.ConnCase
|
||
|
|
||
|
import Pleroma.Factory
|
||
|
|
||
|
test "nodeinfo shows staff accounts", %{conn: conn} do
|
||
|
user = insert(:user, %{local: true, info: %{"is_moderator" => true}})
|
||
|
|
||
|
conn =
|
||
|
conn
|
||
|
|> get("/nodeinfo/2.0.json")
|
||
|
|
||
|
assert result = json_response(conn, 200)
|
||
|
|
||
|
assert user.ap_id in result["metadata"]["staffAccounts"]
|
||
|
end
|
||
|
end
|