We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cb5d04 commit 5219786Copy full SHA for 5219786
src/test/clojure/cljs/analyzer/spec_tests.clj
@@ -9,6 +9,7 @@
9
(ns cljs.analyzer.spec-tests
10
(:require [cljs.analyzer :as ana]
11
[cljs.analyzer.api :as ana-api :refer [no-warn]]
12
+ [cljs.compiler.api :as comp-api]
13
[cljs.analyzer-tests :refer [analyze ns-env]]
14
[cljs.analyzer.specs :as a]
15
[clojure.test :as test :refer [deftest is]]
@@ -214,8 +215,9 @@
214
215
(is (= :set! (:op node)))
216
(is (s/valid? ::a/node node))))
217
-#_(deftest test-the-var
218
- (let [node (no-warn (analyze ns-env '(var x)))]
+(deftest test-the-var
219
+ (let [node (comp-api/with-core-cljs {}
220
+ #(analyze ns-env '(var first)))]
221
(is (= :the-var (:op node)))))
222
223
(deftest test-throw
0 commit comments