Add test for PageHTML home template

Added test to cover the home.html template rendering.

This improves PageHTML coverage from 0% to 100%.
This commit is contained in:
Graham McIntire 2026-01-13 07:49:25 -06:00
parent 6e02dc460a
commit 89b038a14f
No known key found for this signature in database

View file

@ -0,0 +1,11 @@
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