Skip to content

Commit 79a5541

Browse files
committed
Fix unit test
The assertion message was passed as opts to reformats-to. This still worked because (:foo "some string") yields nil, so all default options were used, just like the test requires.
1 parent dca9b79 commit 79a5541

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cljfmt/test/cljfmt/core_test.cljc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@
306306
" (reduce + ns"
307307
" ))"]
308308
["(let [ns (range 10)]"
309-
" (reduce + ns))"]
310-
"doesn't throw with local vars named ns bound to expressions")))
309+
" (reduce + ns))"])
310+
"doesn't throw with local vars named ns bound to expressions"))
311311

312312
(testing "function #() syntax"
313313
(is (reformats-to?

0 commit comments

Comments
 (0)