mirror of
https://github.com/TheRealOwenRees/chess-endgame-trainer.git
synced 2026-09-19 11:03:52 +00:00
13 lines
374 B
Elixir
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
|