forked from shibao/cannery
12 lines
330 B
Elixir
12 lines
330 B
Elixir
|
defmodule CanneryWeb.HomeLiveTest do
|
||
|
use CanneryWeb.ConnCase
|
||
|
|
||
|
import Phoenix.LiveViewTest
|
||
|
|
||
|
test "disconnected and connected render", %{conn: conn} do
|
||
|
{:ok, home_live, disconnected_html} = live(conn, "/")
|
||
|
assert disconnected_html =~ "Welcome to Cannery"
|
||
|
assert render(home_live) =~ "Welcome to Cannery"
|
||
|
end
|
||
|
end
|