Files
chess-trainer/test/chesstrainer_web/controllers/error_json_test.exs
T
2026-06-20 19:08:18 +02:00

13 lines
374 B
Elixir

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