initial commit

This commit is contained in:
Pierre de Lacroix 2025-12-20 11:56:45 +01:00
commit 617c2ab725
22 changed files with 671 additions and 0 deletions

View file

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