From a960791a67009b652a9eaeacae3d9dc34b238255 Mon Sep 17 00:00:00 2001 From: Stan Verberkt <2913270+verberktstan@users.noreply.github.com> Date: Wed, 31 Jan 2024 21:44:03 +0100 Subject: [PATCH] Adapt spec test expectations --- test/swark/core_test.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/swark/core_test.clj b/test/swark/core_test.clj index a9cee82..e312ba0 100644 --- a/test/swark/core_test.clj +++ b/test/swark/core_test.clj @@ -83,8 +83,8 @@ (t/are [result spec input] (= result (sut/invalid-map? spec input)) nil {:id nat-int?} {:id 0} ; Valid, so `nil` is returned {:id report} {:id nat-int?} {:id -1} ; Invalid, so a set of invalid keys is returns - {::sut/input nil} {} nil ; Nil input, so ::swark/nil is returned - {::sut/input nil} {:id nat-int?} nil) + ::sut/nil {} nil ; Nil input, so ::swark/nil is returned + ::sut/nil {:id nat-int?} nil) (t/are [msg spec input] (thrown-with-msg? AssertionError msg (sut/valid-map? spec input)) #"Spec should be a map!" nil {:id -1} #"All vals in spec should implement IFn" {:id "not IFn"} {:id -1} ; Spec