systant/dashboard/test/dashboard_web/controllers/error_html_test.exs
ryan 9ae6a15970 Clean up stale directories and fix monorepo structure
- Remove remaining home-assistant-integration/ and dev-config/
- Move dashboard to repo root for proper monorepo layout
- Remove crash dumps and symlinks
- Clean structure: server/ and dashboard/ at root level
2025-08-02 21:53:53 -07:00

15 lines
422 B
Elixir

defmodule DashboardWeb.ErrorHTMLTest do
use DashboardWeb.ConnCase, async: true
# Bring render_to_string/4 for testing custom views
import Phoenix.Template
test "renders 404.html" do
assert render_to_string(DashboardWeb.ErrorHTML, "404", "html", []) == "Not Found"
end
test "renders 500.html" do
assert render_to_string(DashboardWeb.ErrorHTML, "500", "html", []) == "Internal Server Error"
end
end