lecture 06

This commit is contained in:
SowinskiBraeden committed 2026-10-17 16:34:36 -07:00
1 parent 85297ca4a8
commit 15fbe95787
76 files changed
+3756

No files matched your search

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