Test the output of the endpoint

This commit is contained in:
Mark Felder 2021-02-18 15:09:14 -06:00
parent beb7d4dcf0
commit 55b1430dab

View file

@ -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