groupdle/test/groupdle_web/controllers/error_json_test.exs
2024-12-05 09:18:07 -05:00

12 lines
358 B
Elixir

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