shift73k/test/real_estate_web/live/page_live_test.exs
João Gilberto Balsini Moura 4ad6d6e220 Create phoenix project
2020-09-12 19:47:24 -03:00

11 lines
338 B
Elixir

defmodule RealEstateWeb.PageLiveTest do
use RealEstateWeb.ConnCase
import Phoenix.LiveViewTest
test "disconnected and connected render", %{conn: conn} do
{:ok, page_live, disconnected_html} = live(conn, "/")
assert disconnected_html =~ "Welcome to Phoenix!"
assert render(page_live) =~ "Welcome to Phoenix!"
end
end