Skip to content

Commit 3501c40

Browse files
author
dnolen
committed
fix tests broken by last commit where we dropped .call invokes for
anything not coming from a ClojureScript namespace
1 parent 77e01a0 commit 3501c40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/clojure/cljs/module_processing_tests.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
:module-type :commonjs}]})
6161
compile (fn [form] (with-out-str
6262
(comp/emit (ana/analyze (ana/empty-env) form))))
63-
output "module$src$test$cljs$calculator.add.call(null,(3),(4));\n"]
63+
output "module$src$test$cljs$calculator.add((3),(4));\n"]
6464
(swap! cenv
6565
#(assoc % :js-dependency-index (deps/js-dependency-index opts)))
6666
(binding [ana/*cljs-ns* 'cljs.user]
@@ -70,4 +70,4 @@
7070
(is (= (compile '(calculator/add 3 4)) output))
7171
(is (= (compile '(add 3 4)) output))
7272
(is (= (compile '(sub 5 4))
73-
"module$src$test$cljs$calculator.subtract.call(null,(5),(4));\n")))))))
73+
"module$src$test$cljs$calculator.subtract((5),(4));\n")))))))

0 commit comments

Comments
 (0)