blob: 0734e4d405d9f3cb76e5ccaee02317cc1021a92b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
defmodule NullaWeb.ErrorJSONTest do
use NullaWeb.ConnCase, async: true
test "renders 404" do
assert NullaWeb.ErrorJSON.render("404.json", %{}) == %{errors: %{detail: "Not Found"}}
end
test "renders 500" do
assert NullaWeb.ErrorJSON.render("500.json", %{}) ==
%{errors: %{detail: "Internal Server Error"}}
end
end
|