memEx/test/memex_web/live/home_live_test.exs
shibao 63d854ffbe
All checks were successful
continuous-integration/drone/push Build is passing
upgrade to phoenix 1.7
2023-04-13 23:29:29 -04:00

12 lines
302 B
Elixir

defmodule MemexWeb.HomeLiveTest do
use MemexWeb.ConnCase
import Phoenix.LiveViewTest
test "disconnected and connected render", %{conn: conn} do
{:ok, page_live, disconnected_html} = live(conn, ~p"/")
assert disconnected_html =~ "memEx"
assert render(page_live) =~ "memEx"
end
end