chronoscope/test/chronoscope_web/controllers/page_controller_test.exs

18 lines
372 B
Elixir
Raw Normal View History

2024-03-09 14:27:14 -05:00
defmodule ChronoscopeWeb.PageControllerTest do
2024-04-19 11:51:28 -04:00
use ChronoscopeWeb.ConnCase, async: true
2024-03-09 14:27:14 -05:00
2024-05-29 16:25:27 -04:00
alias Chronoscope.DynamicSupervisorMock
import Mox
setup :verify_on_exit!
2024-03-09 14:27:14 -05:00
test "GET /", %{conn: conn} do
2024-05-29 16:25:27 -04:00
DynamicSupervisorMock
|> expect(:which_children, fn _ -> [] end)
2024-03-09 14:27:14 -05:00
conn = get(conn, ~p"/")
2024-05-29 16:25:27 -04:00
assert html_response(conn, 200) =~ "Chronoscope"
2024-03-09 14:27:14 -05:00
end
end