api specs

This commit is contained in:
2026-04-29 00:45:48 +04:00
parent 27143319e3
commit 8cda54548f
67 changed files with 5052 additions and 93 deletions

View File

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