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

15 lines
335 B
Elixir

defmodule ChronoscopeWeb.API.V1.HealthControllerTest do
use ChronoscopeWeb.ConnCase, async: true
describe "GET /api/v1/health" do
test "is healthy", %{conn: conn} do
response =
conn
|> get(~p"/api/v1/health")
|> json_response(200)
assert %{"healthy" => true} == response
end
end
end