mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-06-10 17:29:32 +00:00
Test the output of the endpoint
This commit is contained in:
parent
beb7d4dcf0
commit
55b1430dab
|
@ -1453,4 +1453,12 @@ defmodule Pleroma.Web.AdminAPI.ConfigControllerTest do
|
|||
assert esshd["children"]
|
||||
end
|
||||
end
|
||||
|
||||
test "GET /api/pleroma/admin/config/tabs", %{conn: conn} do
|
||||
result = get(conn, "/api/pleroma/admin/config/tabs") |> json_response_and_validate_schema(200)
|
||||
|
||||
assert length(result) > 0
|
||||
|
||||
assert Enum.any?(result, fn tab -> tab["label"] == "Instance" end)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue