Add HealthController test (0% → 100%)

This commit is contained in:
Graham McIntire 2026-01-13 07:39:28 -06:00
parent e6650833f6
commit 160007cab1
No known key found for this signature in database

View file

@ -0,0 +1,11 @@
defmodule ToweropsWeb.HealthControllerTest do
use ToweropsWeb.ConnCase, async: true
describe "GET /health" do
test "returns ok", %{conn: conn} do
conn = get(conn, ~p"/health")
assert response(conn, 200) == "ok"
assert get_resp_header(conn, "content-type") == ["text/plain; charset=utf-8"]
end
end
end