Skip to content

Commit 5b34a6d

Browse files
author
dnolen
committed
CLJS-1736: cljs.spec.test: checkable-syms* called with 0-arity
1 parent 85bab07 commit 5b34a6d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/main/cljs/cljs/spec/test.cljc

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,13 @@ Returns a collection of syms naming the vars unstrumented."
181181
(validate-check-opts opts#)
182182
(check-1 nil ~f ~spec opts#))))
183183

184-
(defn checkable-syms* [opts]
185-
(reduce into #{}
186-
[(filter fn-spec-name? (keys @s/registry-ref))
187-
(keys (:spec opts))]))
184+
(defn checkable-syms*
185+
([]
186+
(checkable-syms* nil))
187+
([opts]
188+
(reduce into #{}
189+
[(filter fn-spec-name? (keys @s/registry-ref))
190+
(keys (:spec opts))])))
188191

189192
(defmacro checkable-syms
190193
"Given an opts map as per check, returns the set of syms that

0 commit comments

Comments
 (0)