This commit is contained in:
Rüdiger Diedrich
2024-02-26 12:09:47 +01:00
commit c242bbc633
70 changed files with 5921 additions and 0 deletions

View File

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