From 0cafb9639d082ac77fca303a5d8b6c4c5390158d Mon Sep 17 00:00:00 2001 From: Tommi Reiman Date: Tue, 5 Jun 2018 08:49:30 +0300 Subject: [PATCH] . --- test/cljc/reitit/core_test.cljc | 6 ------ test/cljc/reitit/ring_test.cljc | 3 +-- test/cljc/reitit/spec_test.cljc | 2 +- 3 files changed, 2 insertions(+), 9 deletions(-) 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"