make it so
This commit is contained in:
commit
1c14844317
45 changed files with 2592 additions and 0 deletions
12
test/wild_web/controllers/error_json_test.exs
Normal file
12
test/wild_web/controllers/error_json_test.exs
Normal file
|
@ -0,0 +1,12 @@
|
|||
defmodule WildWeb.ErrorJSONTest do
|
||||
use WildWeb.ConnCase, async: true
|
||||
|
||||
test "renders 404" do
|
||||
assert WildWeb.ErrorJSON.render("404.json", %{}) == %{errors: %{detail: "Not Found"}}
|
||||
end
|
||||
|
||||
test "renders 500" do
|
||||
assert WildWeb.ErrorJSON.render("500.json", %{}) ==
|
||||
%{errors: %{detail: "Internal Server Error"}}
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue