putzplan/test/putzplan_web/controllers/error_json_test.exs
2025-04-03 12:17:46 +02:00

12 lines
358 B
Elixir

defmodule PutzplanWeb.ErrorJSONTest do
use PutzplanWeb.ConnCase, async: true
test "renders 404" do
assert PutzplanWeb.ErrorJSON.render("404.json", %{}) == %{errors: %{detail: "Not Found"}}
end
test "renders 500" do
assert PutzplanWeb.ErrorJSON.render("500.json", %{}) ==
%{errors: %{detail: "Internal Server Error"}}
end
end