mirror of
https://github.com/metosin/reitit.git
synced 2026-01-15 02:39:51 +00:00
Fix tests
This commit is contained in:
parent
da9c94e520
commit
dc5768d3cd
2 changed files with 1 additions and 3 deletions
|
|
@ -119,8 +119,7 @@
|
||||||
(map->Route $))
|
(map->Route $))
|
||||||
(map->Route {:path path
|
(map->Route {:path path
|
||||||
:meta meta
|
:meta meta
|
||||||
:matcher #?(:clj #(if (.equals path %) {})
|
:matcher #(if (#?(:clj .equals, :cljs =) path %) {})
|
||||||
:cljs #(if (= path %)))
|
|
||||||
:result result}))))
|
:result result}))))
|
||||||
|
|
||||||
(defn segments [path]
|
(defn segments [path]
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,6 @@
|
||||||
(r/lookup-router
|
(r/lookup-router
|
||||||
(r/resolve-routes
|
(r/resolve-routes
|
||||||
["/api/:version/ping"] {})))))))
|
["/api/:version/ping"] {})))))))
|
||||||
["/api/:version/ping"] {})))))))
|
|
||||||
|
|
||||||
(testing "route coercion & compilation"
|
(testing "route coercion & compilation"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue