Delete test/plausible_web/controllers/page_controller_test.exs with huggingface_hub
Browse files
test/plausible_web/controllers/page_controller_test.exs
DELETED
|
@@ -1,19 +0,0 @@
|
|
| 1 |
-
defmodule PlausibleWeb.PageControllerTest do
|
| 2 |
-
use PlausibleWeb.ConnCase, async: true
|
| 3 |
-
|
| 4 |
-
setup {PlausibleWeb.FirstLaunchPlug.Test, :skip}
|
| 5 |
-
|
| 6 |
-
describe "GET /" do
|
| 7 |
-
setup [:create_user, :log_in]
|
| 8 |
-
|
| 9 |
-
test "shows landing page when user not authenticated" do
|
| 10 |
-
assert build_conn() |> get("/") |> html_response(200) =~ "Welcome to Plausible!"
|
| 11 |
-
end
|
| 12 |
-
|
| 13 |
-
test "redirects to /sites if user is authenticated", %{conn: conn} do
|
| 14 |
-
assert conn
|
| 15 |
-
|> get("/")
|
| 16 |
-
|> redirected_to(302) == "/sites"
|
| 17 |
-
end
|
| 18 |
-
end
|
| 19 |
-
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|