Add HealthController test (0% → 100%)
This commit is contained in:
parent
e6650833f6
commit
160007cab1
1 changed files with 11 additions and 0 deletions
11
test/towerops_web/controllers/health_controller_test.exs
Normal file
11
test/towerops_web/controllers/health_controller_test.exs
Normal 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
|
||||
Loading…
Add table
Reference in a new issue