dotfiles/app/test/prymn_web/controllers/error_json_test.exs
2023-07-19 23:24:24 +03:00

12 lines
346 B
Elixir

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