towerops/test/towerops_web/controllers/health_controller_test.exs

11 lines
334 B
Elixir

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