mirror of
https://github.com/metosin/reitit.git
synced 2025-12-16 16:01:11 +00:00
fix spec tests + format
This commit is contained in:
parent
1247e7ff25
commit
8e1e7e62ca
25 changed files with 208 additions and 208 deletions
|
|
@ -14,6 +14,7 @@ We use [Break Versioning][breakver]. The version numbers follow a `<major>.<mino
|
|||
|
||||
## UNRELEASED
|
||||
|
||||
* **BREAKING**: Drop tests for Clojure 1.9, run tests with 1.10 & 1.11
|
||||
* Add support for fragment parameters in the reitit-frontend module [#554](https://github.com/metosin/reitit/pull/554)
|
||||
* NEW option `:meta-merge` on a router for custom merge strategy on route data
|
||||
* Swagger: support operationId in generated swagger json [#452](https://github.com/metosin/reitit/pull/452) & [#569](https://github.com/metosin/reitit/pull/569)
|
||||
|
|
|
|||
|
|
@ -9,8 +9,7 @@
|
|||
[fipp.engine]
|
||||
[fipp.visit]
|
||||
[reitit.exception :as exception]
|
||||
[spell-spec.expound] ;; expound
|
||||
))
|
||||
[spell-spec.expound])) ;; expound
|
||||
|
||||
;;
|
||||
;; colors
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@
|
|||
|
||||
:java-source-paths ["modules/reitit-core/java-src"]
|
||||
|
||||
:dependencies [[org.clojure/clojure "1.10.2"]
|
||||
:dependencies [[org.clojure/clojure "1.11.1"]
|
||||
[org.clojure/clojurescript "1.10.773"]
|
||||
|
||||
;; modules dependencies
|
||||
|
|
@ -115,7 +115,7 @@
|
|||
[ring-cors "0.1.13"]
|
||||
|
||||
[com.bhauman/rebel-readline "0.1.4"]]}
|
||||
:1.9 {:dependencies [[org.clojure/clojure "1.9.0"]]}
|
||||
:1.10 {:dependencies [[org.clojure/clojure "1.10.3"]]}
|
||||
:perf {:jvm-opts ^:replace ["-server"
|
||||
"-Xmx4096m"
|
||||
"-Dclojure.compiler.direct-linking=true"]
|
||||
|
|
@ -141,7 +141,7 @@
|
|||
"-XX:+PrintCompilation"
|
||||
"-XX:+UnlockDiagnosticVMOptions"
|
||||
"-XX:+PrintInlining"]}}
|
||||
:aliases {"all" ["with-profile" "dev,default:dev,default,1.9"]
|
||||
:aliases {"all" ["with-profile" "dev,default:dev,default,1.10"]
|
||||
"perf" ["with-profile" "default,dev,perf"]
|
||||
"test-clj" ["all" "do" ["bat-test"] ["check"]]
|
||||
"test-browser" ["doo" "chrome-headless" "test"]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
(ns reitit.exception-test
|
||||
(:require [clojure.spec.alpha :as s]
|
||||
[clojure.test :refer [are deftest is testing]]
|
||||
[clojure.test :refer [are deftest is]]
|
||||
[reitit.core :as r]
|
||||
[reitit.dev.pretty :as pretty]
|
||||
[reitit.exception :as exception]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
(ns reitit.impl-test
|
||||
(:require [clojure.test :refer [are deftest is testing]]
|
||||
(:require [clojure.test :refer [are deftest is]]
|
||||
[reitit.impl :as impl]))
|
||||
|
||||
(deftest strip-nils-test
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
(ns reitit.interceptor-test
|
||||
(:require [clojure.test :refer [are deftest is testing]]
|
||||
(:require [clojure.test :refer [deftest is testing]]
|
||||
[reitit.core :as r]
|
||||
[reitit.interceptor :as interceptor])
|
||||
#?(:clj
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
(ns reitit.middleware-test
|
||||
(:require [clojure.test :refer [are deftest is testing]]
|
||||
(:require [clojure.test :refer [deftest is testing]]
|
||||
[reitit.core :as r]
|
||||
[reitit.middleware :as middleware])
|
||||
#?(:clj
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@
|
|||
(are [data]
|
||||
(is (thrown-with-msg?
|
||||
ExceptionInfo
|
||||
#"Call to #'reitit.core/router did not conform to spec"
|
||||
#"Call to (#')*reitit.core/router did not conform to spec"
|
||||
(r/router
|
||||
data)))
|
||||
|
||||
|
|
@ -69,7 +69,7 @@
|
|||
(are [opts]
|
||||
(is (thrown-with-msg?
|
||||
ExceptionInfo
|
||||
#"Call to #'reitit.core/router did not conform to spec"
|
||||
#"Call to (#')*reitit.core/router did not conform to spec"
|
||||
(r/router
|
||||
["/api"] opts)))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue