Skip to content

Commit

Permalink
fix eager mi/check
Browse files Browse the repository at this point in the history
  • Loading branch information
ikitommi committed Jan 7, 2024
1 parent 4969f64 commit 2caabf1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions test/malli/instrument_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@
(mi/-schema #'f2)))
(is (= nil (mi/-schema #'f3))))

(deftest check-test
(testing "all registered function schemas in this namespace"
(let [results (mi/check {:filters [(mi/-filter-ns 'malli.instrument-test)]})]
(is (map? results)))))

(deftest instrument-external-test

(testing "Without instrumentation"
Expand Down
5 changes: 3 additions & 2 deletions test/malli/instrument_test.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,9 @@
(is (= 9 (minus-small-int 10)))))

(deftest ^:simple check-test
(let [results (mi/check)]
(is (map? results))))
(testing "all registered function schemas in this namespace"
(let [results (mi/check {:filters [(mi/-filter-ns 'malli.instrument-test)]})]
(is (map? results)))))

(deftest ^:simple instrument-external-test

Expand Down

0 comments on commit 2caabf1

Please sign in to comment.