This commit is contained in:
Rüdiger Diedrich
2025-03-27 11:04:23 +01:00
commit 0a15d255f6
45 changed files with 2588 additions and 0 deletions

View File

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