chronoscope/test/chronoscope_web/controllers/api/v1/health_controller_test.exs

15 lines
335 B
Elixir
Raw Permalink Normal View History

2024-03-18 16:12:41 -04:00
defmodule ChronoscopeWeb.API.V1.HealthControllerTest do
use ChronoscopeWeb.ConnCase, async: true
2024-04-01 10:48:49 -04:00
describe "GET /api/v1/health" do
test "is healthy", %{conn: conn} do
response =
conn
|> get(~p"/api/v1/health")
|> json_response(200)
2024-03-18 16:12:41 -04:00
2024-04-01 10:48:49 -04:00
assert %{"healthy" => true} == response
end
2024-03-18 16:12:41 -04:00
end
end