This commit is contained in:
2023-09-20 20:40:47 -04:00
commit bd9fc782ff
927 changed files with 5533 additions and 0 deletions

View File

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