This commit is contained in:
Tommi Reiman 2023-05-27 19:02:10 +03:00
parent d17c97780e
commit 1b5287724e

View file

@ -517,8 +517,7 @@
(is (nil? (validate spec))))))))
(deftest multipart-test
(doseq [[coercion file-schema string-schema]
[[#'malli/coercion
(doseq [[coercion file-schema string-schema] [[#'malli/coercion
reitit.ring.malli/bytes-part
:string]
[#'schema/coercion
@ -565,8 +564,7 @@
(is (nil? (validate spec))))))))
(deftest per-content-type-test
(doseq [[coercion ->schema]
[[malli/coercion (fn [nom] [:map [nom :string]])]
(doseq [[coercion ->schema] [[malli/coercion (fn [nom] [:map [nom :string]])]
[schema/coercion (fn [nom] {nom s/Str})]
[spec/coercion (fn [nom] {nom string?})]]]
(testing (str coercion)
@ -654,8 +652,7 @@
(is (nil? (validate spec))))))))
(deftest default-content-type-test
(doseq [[coercion ->schema]
[[malli/coercion (fn [nom] [:map [nom :string]])]
(doseq [[coercion ->schema] [[malli/coercion (fn [nom] [:map [nom :string]])]
[schema/coercion (fn [nom] {nom s/Str})]
[spec/coercion (fn [nom] {nom string?})]]]
(testing (str coercion)