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"]
|
assert esshd["children"]
|
||||||
end
|
end
|
||||||
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
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user