Skip to content

Commit

Permalink
* test-the-var
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed Nov 17, 2024
1 parent 4cb5d04 commit 5219786
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/test/clojure/cljs/analyzer/spec_tests.clj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
(ns cljs.analyzer.spec-tests
(:require [cljs.analyzer :as ana]
[cljs.analyzer.api :as ana-api :refer [no-warn]]
[cljs.compiler.api :as comp-api]
[cljs.analyzer-tests :refer [analyze ns-env]]
[cljs.analyzer.specs :as a]
[clojure.test :as test :refer [deftest is]]
Expand Down Expand Up @@ -214,8 +215,9 @@
(is (= :set! (:op node)))
(is (s/valid? ::a/node node))))

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

(deftest test-throw
Expand Down

0 comments on commit 5219786

Please sign in to comment.