Skip to content

Commit 777b10e

Browse files
committed
CLJS-2997: cljs-2977-variadic-fn-failing in CI
1 parent d626d57 commit 777b10e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/cljs/cljs/spec/test/alpha.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
(fn [& args]
131131
(if *instrument-enabled*
132132
(with-instrument-disabled
133-
(conform!* args)
133+
(conform!* (apply list* args))
134134
(binding [*instrument-enabled* true]
135135
(apply' variadic args)))
136136
(apply' variadic args))))))

src/test/cljs/cljs/spec_test.cljs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@
442442
(is (= (s/form #(odd? %)) ::s/unknown)))
443443

444444
(defn defk [key & [doc]]
445-
key)
445+
[key doc])
446446

447447
(s/fdef defk
448448
:args (s/cat :key keyword?
@@ -453,7 +453,7 @@
453453
(deftest cljs-2977-variadic-fn
454454
(is (thrown? js/Error (defk 1 1)))
455455
(is (thrown? js/Error (defk :foo 1)))
456-
(is (= :foo (defk :foo "bar"))))
456+
(is (= [:foo "bar"] (defk :foo "bar"))))
457457

458458
(comment
459459

0 commit comments

Comments
 (0)