mirror of
https://github.com/wanderer-industries/wanderer
synced 2025-12-12 18:56:01 +00:00
13 lines
370 B
Elixir
13 lines
370 B
Elixir
defmodule WandererAppWeb.ErrorJSONTest do
|
|
use WandererAppWeb.ConnCase, async: true
|
|
|
|
test "renders 404" do
|
|
assert WandererAppWeb.ErrorJSON.render("404.json", %{}) == %{errors: %{detail: "Not Found"}}
|
|
end
|
|
|
|
test "renders 500" do
|
|
assert WandererAppWeb.ErrorJSON.render("500.json", %{}) ==
|
|
%{errors: %{detail: "Internal Server Error"}}
|
|
end
|
|
end
|