Potion/test/potion_web/controllers/error_html_test.exs
Hayden Hargreaves 7af441f975 (INIT): Project initialized!
Finally, its starting!
2025-05-26 20:30:38 -07:00

15 lines
410 B
Elixir

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