We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdb9c7a commit 53abd2cCopy full SHA for 53abd2c
src/test/clojure/cljs/analyzer_tests.clj
@@ -556,9 +556,11 @@
556
557
(deftest test-analyze-refer-global
558
(testing "refer-global macro expr return expected AST"
559
- (let [test-env (ana/empty-env)]
560
- (is (= (-> (analyze test-env '(refer-global :only '[Date])) :uses vals set)
561
- '#{js})))))
+ (binding [ana/*cljs-ns* ana/*cljs-ns*
+ ana/*cljs-warnings* nil]
+ (let [test-env (ana/empty-env)]
562
+ (is (= (-> (analyze test-env '(refer-global :only '[Date])) :uses vals set)
563
+ '#{js}))))))
564
565
(deftest test-gen-user-ns
566
;; note: can't use `with-redefs` because direct-linking is enabled
0 commit comments