Skip to content

Commit 4bc7e87

Browse files
committed
add test for CLJS-2323
1 parent fca4521 commit 4bc7e87

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/test/clojure/cljs/build_api_tests.clj

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -398,16 +398,18 @@
398398
(build/build (build/inputs (io/file inputs "data_readers_test")) opts cenv)
399399
(is (contains? (-> @cenv ::ana/data-readers) 'test/custom-identity))))
400400

401-
(comment
402-
(let [out "out"
401+
(deftest test-data-readers-records
402+
(let [out (.getPath (io/file (test/tmp-dir) "data-readers-test-records-out"))
403403
{:keys [inputs opts]} {:inputs (str (io/file "src" "test" "cljs"))
404404
:opts {:main 'data-readers-test.records
405405
:output-dir out
406406
:optimizations :none
407407
:closure-warnings {:check-types :off}}}
408408
cenv (env/default-compiler-env)]
409-
(build/build (build/inputs (io/file inputs "data_readers_test")) opts cenv))
410-
)
409+
(test/delete-out-files out)
410+
(build/build (build/inputs (io/file inputs "data_readers_test")) opts cenv)
411+
(is (true? (boolean (re-find #"data_readers_test.records.map__GT_Foo\("
412+
(slurp (io/file out "data_readers_test" "records.js"))))))))
411413

412414
(deftest test-cljs-2249
413415
(let [out (io/file (test/tmp-dir) "cljs-2249-out")

0 commit comments

Comments
 (0)