This commit is contained in:
2025-08-05 00:44:17 +01:00
commit 7825596c94
45 changed files with 2588 additions and 0 deletions

View File

@ -0,0 +1,12 @@
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