Files
wish/test/wish_web/controllers/error_json_test.exs
2023-11-23 00:36:49 +00:00

13 lines
342 B
Elixir

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