Skip to content

Commit

Permalink
Adapt spec test expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
verberktstan authored Jan 31, 2024
1 parent 01c39a9 commit a960791
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/swark/core_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a960791

Please sign in to comment.