Skip to content

Commit f88fa62

Browse files
anmonteiroswannodette
authored andcommitted
CLJS-2350: Fix circular dependencies test
1 parent 35a3609 commit f88fa62

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/test/clojure/cljs/build_api_tests.clj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,15 @@
171171
(test/delete-out-files out)
172172
(try
173173
(build/build (build/inputs
174-
(io/file (str root "a.cljs"))
175-
(io/file (str root "b.cljs")))
174+
(io/file root "circular_deps" "a.cljs")
175+
(io/file root "circular_deps" "b.cljs"))
176176
{:main 'circular-deps.a
177177
:optimizations :none
178178
:output-to out})
179179
(is false)
180180
(catch Throwable e
181-
(is true)))))
181+
(is (re-find #"Circular dependency detected, circular-deps.a -> circular-deps.b -> circular-deps.a"
182+
(.getMessage (.getCause e))))))))
182183

183184
(defn loader-test-project [output-dir]
184185
{:inputs (str (io/file "src" "test" "cljs_build" "loader_test"))

0 commit comments

Comments
 (0)