From dc5768d3cd418fe4113fb3dccaeba5a81d0d4eaa Mon Sep 17 00:00:00 2001 From: Tommi Reiman Date: Mon, 2 Oct 2017 08:21:18 +0300 Subject: [PATCH] Fix tests --- src/reitit/impl.cljc | 3 +-- test/cljc/reitit/core_test.cljc | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/reitit/impl.cljc b/src/reitit/impl.cljc index 9b4c6d1e..091a1a15 100644 --- a/src/reitit/impl.cljc +++ b/src/reitit/impl.cljc @@ -119,8 +119,7 @@ (map->Route $)) (map->Route {:path path :meta meta - :matcher #?(:clj #(if (.equals path %) {}) - :cljs #(if (= path %))) + :matcher #(if (#?(:clj .equals, :cljs =) path %) {}) :result result})))) (defn segments [path] diff --git a/test/cljc/reitit/core_test.cljc b/test/cljc/reitit/core_test.cljc index eb41d278..6a50c46c 100644 --- a/test/cljc/reitit/core_test.cljc +++ b/test/cljc/reitit/core_test.cljc @@ -69,7 +69,6 @@ (r/lookup-router (r/resolve-routes ["/api/:version/ping"] {}))))))) - ["/api/:version/ping"] {}))))))) (testing "route coercion & compilation"