diff --git a/test/cljc/reitit/core_test.cljc b/test/cljc/reitit/core_test.cljc index f702f9bd..f8233888 100644 --- a/test/cljc/reitit/core_test.cljc +++ b/test/cljc/reitit/core_test.cljc @@ -246,9 +246,3 @@ [["/a"] ["/a"]])))) (testing "can be configured to ignore" (is (not (nil? (r/router [["/a"] ["/a"]] {:conflicts (constantly nil)}))))))) - -(testing "nil routes are stripped" - (is (= [] (r/routes (r/router nil)))) - (is (= [] (r/routes (r/router [nil ["/ping"]])))) - (is (= [] (r/routes (r/router [nil [nil] [[nil nil nil]]])))) - (is (= [] (r/routes (r/router ["/ping" [nil "/pong"]]))))) diff --git a/test/cljc/reitit/ring_test.cljc b/test/cljc/reitit/ring_test.cljc index 85697271..5fb6d3d1 100644 --- a/test/cljc/reitit/ring_test.cljc +++ b/test/cljc/reitit/ring_test.cljc @@ -3,8 +3,7 @@ [clojure.set :as set] [reitit.middleware :as middleware] [reitit.ring :as ring] - [reitit.core :as r] - [clojure.string :as str]) + [reitit.core :as r]) #?(:clj (:import (clojure.lang ExceptionInfo)))) diff --git a/test/cljc/reitit/spec_test.cljc b/test/cljc/reitit/spec_test.cljc index 6dafb3ba..880328e5 100644 --- a/test/cljc/reitit/spec_test.cljc +++ b/test/cljc/reitit/spec_test.cljc @@ -66,7 +66,7 @@ {:conflicts (fn [_])} {:router r/linear-router}) - #_(are [opts] + (are [opts] (is (thrown-with-msg? ExceptionInfo #"Call to #'reitit.core/router did not conform to spec"