Files
HaimKortovich b1b1c21e4e
Some checks failed
Build and Publish / build-release (push) Failing after 1s
init commit
2026-04-15 16:20:22 -05:00

15 lines
412 B
Elixir

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