mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 00:11: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
|
## 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)
|
* 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
|
* 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)
|
* 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.engine]
|
||||||
[fipp.visit]
|
[fipp.visit]
|
||||||
[reitit.exception :as exception]
|
[reitit.exception :as exception]
|
||||||
[spell-spec.expound] ;; expound
|
[spell-spec.expound])) ;; expound
|
||||||
))
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; colors
|
;; colors
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@
|
||||||
|
|
||||||
:java-source-paths ["modules/reitit-core/java-src"]
|
: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"]
|
[org.clojure/clojurescript "1.10.773"]
|
||||||
|
|
||||||
;; modules dependencies
|
;; modules dependencies
|
||||||
|
|
@ -115,7 +115,7 @@
|
||||||
[ring-cors "0.1.13"]
|
[ring-cors "0.1.13"]
|
||||||
|
|
||||||
[com.bhauman/rebel-readline "0.1.4"]]}
|
[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"
|
:perf {:jvm-opts ^:replace ["-server"
|
||||||
"-Xmx4096m"
|
"-Xmx4096m"
|
||||||
"-Dclojure.compiler.direct-linking=true"]
|
"-Dclojure.compiler.direct-linking=true"]
|
||||||
|
|
@ -141,7 +141,7 @@
|
||||||
"-XX:+PrintCompilation"
|
"-XX:+PrintCompilation"
|
||||||
"-XX:+UnlockDiagnosticVMOptions"
|
"-XX:+UnlockDiagnosticVMOptions"
|
||||||
"-XX:+PrintInlining"]}}
|
"-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"]
|
"perf" ["with-profile" "default,dev,perf"]
|
||||||
"test-clj" ["all" "do" ["bat-test"] ["check"]]
|
"test-clj" ["all" "do" ["bat-test"] ["check"]]
|
||||||
"test-browser" ["doo" "chrome-headless" "test"]
|
"test-browser" ["doo" "chrome-headless" "test"]
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
(ns reitit.exception-test
|
(ns reitit.exception-test
|
||||||
(:require [clojure.spec.alpha :as s]
|
(:require [clojure.spec.alpha :as s]
|
||||||
[clojure.test :refer [are deftest is testing]]
|
[clojure.test :refer [are deftest is]]
|
||||||
[reitit.core :as r]
|
[reitit.core :as r]
|
||||||
[reitit.dev.pretty :as pretty]
|
[reitit.dev.pretty :as pretty]
|
||||||
[reitit.exception :as exception]
|
[reitit.exception :as exception]
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
(ns reitit.impl-test
|
(ns reitit.impl-test
|
||||||
(:require [clojure.test :refer [are deftest is testing]]
|
(:require [clojure.test :refer [are deftest is]]
|
||||||
[reitit.impl :as impl]))
|
[reitit.impl :as impl]))
|
||||||
|
|
||||||
(deftest strip-nils-test
|
(deftest strip-nils-test
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
(ns reitit.interceptor-test
|
(ns reitit.interceptor-test
|
||||||
(:require [clojure.test :refer [are deftest is testing]]
|
(:require [clojure.test :refer [deftest is testing]]
|
||||||
[reitit.core :as r]
|
[reitit.core :as r]
|
||||||
[reitit.interceptor :as interceptor])
|
[reitit.interceptor :as interceptor])
|
||||||
#?(:clj
|
#?(:clj
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
(ns reitit.middleware-test
|
(ns reitit.middleware-test
|
||||||
(:require [clojure.test :refer [are deftest is testing]]
|
(:require [clojure.test :refer [deftest is testing]]
|
||||||
[reitit.core :as r]
|
[reitit.core :as r]
|
||||||
[reitit.middleware :as middleware])
|
[reitit.middleware :as middleware])
|
||||||
#?(:clj
|
#?(:clj
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
(are [data]
|
(are [data]
|
||||||
(is (thrown-with-msg?
|
(is (thrown-with-msg?
|
||||||
ExceptionInfo
|
ExceptionInfo
|
||||||
#"Call to #'reitit.core/router did not conform to spec"
|
#"Call to (#')*reitit.core/router did not conform to spec"
|
||||||
(r/router
|
(r/router
|
||||||
data)))
|
data)))
|
||||||
|
|
||||||
|
|
@ -69,7 +69,7 @@
|
||||||
(are [opts]
|
(are [opts]
|
||||||
(is (thrown-with-msg?
|
(is (thrown-with-msg?
|
||||||
ExceptionInfo
|
ExceptionInfo
|
||||||
#"Call to #'reitit.core/router did not conform to spec"
|
#"Call to (#')*reitit.core/router did not conform to spec"
|
||||||
(r/router
|
(r/router
|
||||||
["/api"] opts)))
|
["/api"] opts)))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue