mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-26 02:40:18 +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
|