Files
circle/test/circle_web/controllers/error_json_test.exs
2025-08-05 00:44:17 +01:00

13 lines
350 B
Elixir

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