From c2146224956dd26280221f2b396f1cce13e6f2fc Mon Sep 17 00:00:00 2001 From: Juho Teperi Date: Thu, 5 Mar 2020 12:35:37 +0200 Subject: [PATCH] Fix malli tests --- test/cljc/reitit/ring_coercion_test.cljc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cljc/reitit/ring_coercion_test.cljc b/test/cljc/reitit/ring_coercion_test.cljc index a0a6cdaf..935c59d9 100644 --- a/test/cljc/reitit/ring_coercion_test.cljc +++ b/test/cljc/reitit/ring_coercion_test.cljc @@ -305,7 +305,7 @@ (app (->request "open"))))))) (testing "when schemas are not closed" - (let [app (->app {:compile identity})] + (let [app (->app {:compile (fn [v _] v)})] (testing "default: keys are stripped" (is (= {:status 200, :body {:x 1}} @@ -320,7 +320,7 @@ (app (->request "open"))))))) (testing "when schemas are not closed and extra keys are not stripped" - (let [app (->app {:compile identity, :strip-extra-keys false})] + (let [app (->app {:compile (fn [v _] v) :strip-extra-keys false})] (testing "default: keys are NOT stripped" (is (= {:status 200, :body {:x 1, :request true, :response true}} (app (->request "default")))))