Fix tests

This commit is contained in:
Harshad Sharma 2024-05-13 13:56:39 +05:30
parent 481ed2c7f8
commit 23b2adbe35
2 changed files with 6 additions and 6 deletions

View file

@ -17,11 +17,11 @@ defmodule FreediveWeb.Router do
plug :accepts, ["json"]
end
# scope "/", FreediveWeb do
# pipe_through :browser
scope "/", FreediveWeb do
pipe_through :browser
# get "/", PageController, :home
# end
get "/", PageController, :home
end
# Other scopes may use custom stacks.
# scope "/api", FreediveWeb do
@ -64,7 +64,7 @@ defmodule FreediveWeb.Router do
scope "/", FreediveWeb do
pipe_through [:browser, :require_authenticated_user]
get "/", PageController, :home
# get "/", PageController, :home
live_session :require_authenticated_user,
on_mount: [{FreediveWeb.UserAuth, :ensure_authenticated}] do

View file

@ -3,6 +3,6 @@ defmodule FreediveWeb.PageControllerTest do
test "GET /", %{conn: conn} do
conn = get(conn, ~p"/")
assert html_response(conn, 200) =~ "Peace of mind from prototype to production"
assert html_response(conn, 200) =~ "Under Construction"
end
end