From 867a26bc12485194e3a6d9dd076a4bdd87ca4a4c Mon Sep 17 00:00:00 2001 From: davidnolen Date: Wed, 20 Nov 2024 07:54:29 -0800 Subject: [PATCH] * test-js --- src/test/clojure/cljs/analyzer/spec_tests.clj | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test/clojure/cljs/analyzer/spec_tests.clj b/src/test/clojure/cljs/analyzer/spec_tests.clj index 48f3930bf..c24a1b458 100644 --- a/src/test/clojure/cljs/analyzer/spec_tests.clj +++ b/src/test/clojure/cljs/analyzer/spec_tests.clj @@ -133,6 +133,11 @@ (is (= :invoke (:op node))) (is (s/valid? ::a/node node)))) +(deftest test-js + (let [node (analyze ns-env '(js* "~{}" 1))] + (is (= :js (:op node))) + (is (s/valid? ::a/node node)))) + (deftest test-js-array (let [node (analyze ns-env (ana-api/with-state (ana-api/empty-state)