Files
citerun/test/citerun_web/controllers/error_json_test.exs
T
2023-03-29 20:55:14 -07:00

13 lines
354 B
Elixir

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