diff --git a/test/cljc/reitit/core_test.cljc b/test/cljc/reitit/core_test.cljc index 01aa2770..cbc1e266 100644 --- a/test/cljc/reitit/core_test.cljc +++ b/test/cljc/reitit/core_test.cljc @@ -234,19 +234,3 @@ [["/a"] ["/a"]])))) (testing "can be configured to ignore" (is (not (nil? (r/router [["/a"] ["/a"]] {:conflicts (constantly nil)}))))))) - -(require '[reitit.coercion :as coercion]) -(require '[reitit.coercion.spec :as spec]) - -(def r - (r/router - ["/user/:user-id" {:name ::user - :parameters {:path {:user-id int?}}}] - {:compile coercion/compile-request-coercers - :data {:coercion spec/coercion}})) - -(def m - (r/match-by-path r "/user/123")) - -(let [m (r/match-by-path r "/user/123")] - (coercion/coerce-request (:result m) {:path-params (:params m)}))