style: format codebase
This commit is contained in:
@@ -9,6 +9,7 @@ defmodule ComponentsElixirWeb.ErrorHTMLTest do
|
||||
end
|
||||
|
||||
test "renders 500.html" do
|
||||
assert render_to_string(ComponentsElixirWeb.ErrorHTML, "500", "html", []) == "Internal Server Error"
|
||||
assert render_to_string(ComponentsElixirWeb.ErrorHTML, "500", "html", []) ==
|
||||
"Internal Server Error"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -2,7 +2,9 @@ defmodule ComponentsElixirWeb.ErrorJSONTest do
|
||||
use ComponentsElixirWeb.ConnCase, async: true
|
||||
|
||||
test "renders 404" do
|
||||
assert ComponentsElixirWeb.ErrorJSON.render("404.json", %{}) == %{errors: %{detail: "Not Found"}}
|
||||
assert ComponentsElixirWeb.ErrorJSON.render("404.json", %{}) == %{
|
||||
errors: %{detail: "Not Found"}
|
||||
}
|
||||
end
|
||||
|
||||
test "renders 500" do
|
||||
|
||||
Reference in New Issue
Block a user