mirror of
https://github.com/metosin/reitit.git
synced 2026-01-31 10:00:33 +00:00
Format code
This commit is contained in:
parent
3e6f1c0548
commit
763440e41f
1 changed files with 2 additions and 2 deletions
|
|
@ -247,8 +247,8 @@
|
||||||
:post (constantly ok)}]]]
|
:post (constantly ok)}]]]
|
||||||
(testing "using :method :add"
|
(testing "using :method :add"
|
||||||
(let [app (ring/ring-handler
|
(let [app (ring/ring-handler
|
||||||
(ring/router routes)
|
(ring/router routes)
|
||||||
(ring/redirect-trailing-slash-handler {:method :add}))]
|
(ring/redirect-trailing-slash-handler {:method :add}))]
|
||||||
|
|
||||||
(testing "exact matches work"
|
(testing "exact matches work"
|
||||||
(is (= ok (app {:request-method :get, :uri "/slash-less"})))
|
(is (= ok (app {:request-method :get, :uri "/slash-less"})))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue