feat: add playwright and a11y audit and example test
This commit is contained in:
parent
96085ea420
commit
c6be9b5104
19 changed files with 133 additions and 2 deletions
12
test/unit/mv_web/controllers/error_json_test.exs
Normal file
12
test/unit/mv_web/controllers/error_json_test.exs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
defmodule MvWeb.ErrorJSONTest do
|
||||
use MvWeb.ConnCase, async: true
|
||||
|
||||
test "renders 404" do
|
||||
assert MvWeb.ErrorJSON.render("404.json", %{}) == %{errors: %{detail: "Not Found"}}
|
||||
end
|
||||
|
||||
test "renders 500" do
|
||||
assert MvWeb.ErrorJSON.render("500.json", %{}) ==
|
||||
%{errors: %{detail: "Internal Server Error"}}
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue