Files
phoenix-ausblick/test/outlook_web/controllers/error_json_test.exs
Thelonius Kort 81466c3941 Initial commit
After mix phx.new
2022-12-26 14:55:17 +01:00

13 lines
354 B
Elixir

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