mirror of
https://github.com/metosin/reitit.git
synced 2025-12-18 08:51:12 +00:00
Add test to ensure that the problems key is populated
This commit is contained in:
parent
a9cacd78ce
commit
259dd24105
1 changed files with 3 additions and 1 deletions
|
|
@ -95,7 +95,9 @@
|
||||||
(app valid-request))))
|
(app valid-request))))
|
||||||
|
|
||||||
(testing "invalid request"
|
(testing "invalid request"
|
||||||
(let [{:keys [status]} (app invalid-request)]
|
(let [{:keys [status body]} (app invalid-request)
|
||||||
|
problems (:problems body)]
|
||||||
|
(is (= 1 (count problems)))
|
||||||
(is (= 400 status))))
|
(is (= 400 status))))
|
||||||
|
|
||||||
(testing "invalid response"
|
(testing "invalid response"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue