Files
sso-bsn/test/sso_bsn_web/controllers/error_json_test.exs
bluepython508 45e4e9f5da Initial Commit
2023-11-01 17:27:15 +00:00

13 lines
350 B
Elixir

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