Files
stimmung/test/stimmung_web/controllers/error_json_test.exs

13 lines
358 B
Elixir
Raw Permalink Normal View History

2025-03-27 11:04:23 +01:00
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