nulla/test/nulla_web/controllers/error_json_test.exs
2025-07-01 11:29:54 +02:00

12 lines
346 B
Elixir

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