Files
customer-service/test/customer_service_web/controllers/error_json_test.exs
Haim Kortovich 072dbf6e66 WIP
2026-03-05 11:35:01 -05:00

13 lines
386 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