Files
policy-service/test/policy_service_web/controllers/error_json_test.exs
Haim Kortovich a52f049a29 wip
2026-03-05 11:30:08 -05:00

13 lines
378 B
Elixir

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