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 0564ab4 commit a5178caCopy full SHA for a5178ca
src/test/clojure/cljs/analyzer_tests.clj
@@ -1566,16 +1566,11 @@
1566
;; -----------------------------------------------------------------------------
1567
;; :refer-global / :require-global ns parsing tests
1568
1569
-#_(deftest test-refer-global
+(deftest test-refer-global
1570
(binding [ana/*cljs-ns* ana/*cljs-ns*]
1571
(let [parsed-ns (env/with-compiler-env test-cenv
1572
(analyze test-env
1573
'(ns foo.core
1574
- (:refer-global [Date] :rename {Date MyDate}))))]
1575
- )))
1576
-
1577
-(comment
1578
1579
- (clojure.test/test-vars [#'test-refer-global])
1580
1581
- )
+ (:refer-global :only [Date] :rename {Date MyDate}))))]
+ (= (:renames parsed-ns)
+ '{MyDate js/Date}))))
0 commit comments