Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
354 B · 12 lines
Elixir
at main
12345678910111213defmodule TrackerWeb.ErrorJSONTest do use TrackerWeb.ConnCase, async: true
test "renders 404" do assert TrackerWeb.ErrorJSON.render("404.json", %{}) == %{errors: %{detail: "Not Found"}} end
test "renders 500" do assert TrackerWeb.ErrorJSON.render("500.json", %{}) == %{errors: %{detail: "Internal Server Error"}} endend