mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-18 21:38:58 +00:00
elixir phoenix example
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
defmodule HelloWeb.ErrorJSONTest do
|
||||
use HelloWeb.ConnCase, async: true
|
||||
|
||||
test "renders 404" do
|
||||
assert HelloWeb.ErrorJSON.render("404.json", %{}) == %{errors: %{detail: "Not Found"}}
|
||||
end
|
||||
|
||||
test "renders 500" do
|
||||
assert HelloWeb.ErrorJSON.render("500.json", %{}) ==
|
||||
%{errors: %{detail: "Internal Server Error"}}
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user