File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change
1
+ (ns trivial.core5 )
2
+
3
+ (.log js/console {})
Original file line number Diff line number Diff line change 759
759
(build/build (build/inputs (io/file inputs " trivial/core4.cljs" )) opts cenv)
760
760
(is (< (.length out-file) 32768 ))))
761
761
762
+ (deftest trivial-output-size-map
763
+ (let [out (.getPath (io/file (test/tmp-dir ) " trivial-output-map-test-out" ))
764
+ out-file (io/file out " main.js" )
765
+ {:keys [inputs opts]} {:inputs (str (io/file " src" " test" " cljs_build" ))
766
+ :opts {:main 'trivial.core5
767
+ :output-dir out
768
+ :output-to (.getPath out-file)
769
+ :optimizations :advanced }}
770
+ cenv (env/default-compiler-env )]
771
+ (test/delete-out-files out)
772
+ (build/build (build/inputs (io/file inputs " trivial/core5.cljs" )) opts cenv)
773
+ (is (< (.length out-file) 92160 ))))
774
+
762
775
(deftest cljs-3255-nil-inputs-build
763
776
(let [out (.getPath (io/file (test/tmp-dir ) " 3255-test-out" ))
764
777
out-file (io/file out " main.js" )
You can’t perform that action at this time.
0 commit comments