mirror of
https://github.com/metosin/reitit.git
synced 2025-12-19 17:21:10 +00:00
format
This commit is contained in:
parent
d17c97780e
commit
1b5287724e
1 changed files with 19 additions and 22 deletions
|
|
@ -517,8 +517,7 @@
|
||||||
(is (nil? (validate spec))))))))
|
(is (nil? (validate spec))))))))
|
||||||
|
|
||||||
(deftest multipart-test
|
(deftest multipart-test
|
||||||
(doseq [[coercion file-schema string-schema]
|
(doseq [[coercion file-schema string-schema] [[#'malli/coercion
|
||||||
[[#'malli/coercion
|
|
||||||
reitit.ring.malli/bytes-part
|
reitit.ring.malli/bytes-part
|
||||||
:string]
|
:string]
|
||||||
[#'schema/coercion
|
[#'schema/coercion
|
||||||
|
|
@ -565,8 +564,7 @@
|
||||||
(is (nil? (validate spec))))))))
|
(is (nil? (validate spec))))))))
|
||||||
|
|
||||||
(deftest per-content-type-test
|
(deftest per-content-type-test
|
||||||
(doseq [[coercion ->schema]
|
(doseq [[coercion ->schema] [[malli/coercion (fn [nom] [:map [nom :string]])]
|
||||||
[[malli/coercion (fn [nom] [:map [nom :string]])]
|
|
||||||
[schema/coercion (fn [nom] {nom s/Str})]
|
[schema/coercion (fn [nom] {nom s/Str})]
|
||||||
[spec/coercion (fn [nom] {nom string?})]]]
|
[spec/coercion (fn [nom] {nom string?})]]]
|
||||||
(testing (str coercion)
|
(testing (str coercion)
|
||||||
|
|
@ -654,8 +652,7 @@
|
||||||
(is (nil? (validate spec))))))))
|
(is (nil? (validate spec))))))))
|
||||||
|
|
||||||
(deftest default-content-type-test
|
(deftest default-content-type-test
|
||||||
(doseq [[coercion ->schema]
|
(doseq [[coercion ->schema] [[malli/coercion (fn [nom] [:map [nom :string]])]
|
||||||
[[malli/coercion (fn [nom] [:map [nom :string]])]
|
|
||||||
[schema/coercion (fn [nom] {nom s/Str})]
|
[schema/coercion (fn [nom] {nom s/Str})]
|
||||||
[spec/coercion (fn [nom] {nom string?})]]]
|
[spec/coercion (fn [nom] {nom string?})]]]
|
||||||
(testing (str coercion)
|
(testing (str coercion)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue