Added test to cover the home.html template rendering. This improves PageHTML coverage from 0% to 100%.
11 lines
326 B
Elixir
11 lines
326 B
Elixir
defmodule ToweropsWeb.PageHTMLTest do
|
|
use ToweropsWeb.ConnCase, async: true
|
|
|
|
import Phoenix.Template, only: [render_to_string: 4]
|
|
|
|
test "renders home.html" do
|
|
html = render_to_string(ToweropsWeb.PageHTML, "home", "html", flash: %{})
|
|
assert html =~ "Network monitoring"
|
|
assert html =~ "made simple"
|
|
end
|
|
end
|