Skip to content

Commit

Permalink
CLJS-2278 & CLJS-2279
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed Jun 15, 2018
1 parent 3b0ce12 commit 18b97ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/test/clojure/cljs/build_api_tests.clj
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@
(ana/with-warning-handlers [(collecting-warning-handler ws)]
(build/build (build/inputs (io/file inputs "emit_global_requires_test/core.cljs")) opts cenv))
(is (.exists (io/file out "emit_global_requires_test/core.js")))
(is (true? (boolean (re-find #"emit_global_requires_test\.core\.global\$module\$react_dom\$server = goog\.global\.ReactDOMServer;"
(is (true? (boolean (re-find #"emit_global_requires_test\.core\.global\$module\$react_dom\$server = goog\.global\[\"ReactDOMServer\"\];"
(slurp (io/file out "emit_global_requires_test/core.js"))))))
(is (true? (boolean (re-find #"emit_global_requires_test\.core\.global\$module\$react_dom\$server\.renderToString"
(slurp (io/file out "emit_global_requires_test/core.js"))))))
Expand Down
4 changes: 2 additions & 2 deletions src/test/self/self_host/test.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@
:eval node-eval}
(fn [{:keys [error value] :as m}]
(is (nil? error))
(is (some? (re-find #"foo\.core\.global\$module\$calculator = goog.global.Calculator;" value)))
(is (some? (re-find #"foo\.core\.global\$module\$calculator = goog.global\[\"Calculator\"\];" value)))
(inc! l)))
(cljs/eval-str
(atom @st)
Expand Down Expand Up @@ -1166,7 +1166,7 @@
:load calculator-load
:eval identity}
(fn [{{:keys [source]} :value}]
(is (some? (re-find #"foo\.core\.global\$module\$calculator = goog.global.Calculator;\snull;" source)))
(is (some? (re-find #"foo\.core\.global\$module\$calculator = goog.global\[\"Calculator\"\];\snull;" source)))
(inc! l)))))))

(deftest test-cljs-2261
Expand Down

0 comments on commit 18b97ab

Please sign in to comment.