Files
blog-service/test/blogservice_web/controllers/error_json_test.exs
sophiathedev f08cf7b54c feat: initial commit
initial example environment variable used for project with MIX_ENV=prod (production environment)
creating base response for any response
development mode deployment for postgresql
2025-12-07 16:05:36 +07:00

13 lines
370 B
Elixir

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