mix phx.new labelmaker --no-ecto --no-mailer

This commit is contained in:
Gavin McDonald
2025-04-28 07:12:00 -04:00
commit 3f9b51bf64
40 changed files with 2177 additions and 0 deletions

View File

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