mirror of
https://github.com/wanderer-industries/wanderer
synced 2026-05-01 15:00:31 +00:00
14 lines
428 B
Elixir
14 lines
428 B
Elixir
defmodule WandererAppWeb.ErrorJSONTest do
|
|
# Pure function tests - no database or external dependencies needed
|
|
use ExUnit.Case, 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
|