Potion/test/potion_web/controllers/error_json_test.exs
Hayden Hargreaves 7af441f975 (INIT): Project initialized!
Finally, its starting!
2025-05-26 20:30:38 -07:00

13 lines
350 B
Elixir

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