Skip to content

Commit 5219786

Browse files
committed
* test-the-var
1 parent 4cb5d04 commit 5219786

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/test/clojure/cljs/analyzer/spec_tests.clj

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
(ns cljs.analyzer.spec-tests
1010
(:require [cljs.analyzer :as ana]
1111
[cljs.analyzer.api :as ana-api :refer [no-warn]]
12+
[cljs.compiler.api :as comp-api]
1213
[cljs.analyzer-tests :refer [analyze ns-env]]
1314
[cljs.analyzer.specs :as a]
1415
[clojure.test :as test :refer [deftest is]]
@@ -214,8 +215,9 @@
214215
(is (= :set! (:op node)))
215216
(is (s/valid? ::a/node node))))
216217

217-
#_(deftest test-the-var
218-
(let [node (no-warn (analyze ns-env '(var x)))]
218+
(deftest test-the-var
219+
(let [node (comp-api/with-core-cljs {}
220+
#(analyze ns-env '(var first)))]
219221
(is (= :the-var (:op node)))))
220222

221223
(deftest test-throw

0 commit comments

Comments
 (0)