From a2063587b13cf9a5b8d243b9e60bd41676c266d5 Mon Sep 17 00:00:00 2001 From: Tommi Reiman Date: Sat, 9 Dec 2017 23:32:45 +0200 Subject: [PATCH] dead code --- test/cljc/reitit/core_test.cljc | 16 ---------------- 1 file changed, 16 deletions(-) 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)}))