Some checks failed
Build and Publish / build-release (push) Failing after 1s
15 lines
412 B
Elixir
15 lines
412 B
Elixir
defmodule CustomerServiceWeb.ErrorJSONTest do
|
|
use CustomerServiceWeb.ConnCase, async: true
|
|
|
|
test "renders 404" do
|
|
assert CustomerServiceWeb.ErrorJSON.render("404.json", %{}) == %{
|
|
errors: %{detail: "Not Found"}
|
|
}
|
|
end
|
|
|
|
test "renders 500" do
|
|
assert CustomerServiceWeb.ErrorJSON.render("500.json", %{}) ==
|
|
%{errors: %{detail: "Internal Server Error"}}
|
|
end
|
|
end
|