Skip to content

Commit c7b7b5e

Browse files
committed
fix test, explained by ns macro analysis
1 parent 76af26c commit c7b7b5e

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

test/nextjournal/clerk/analyzer2_test.clj

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -303,16 +303,13 @@
303303
(inc a#))))))))
304304

305305
(deftest analyze-doc
306-
;; TODO: FIXME
307-
(is (match? #{{}
308-
{:form '(ns example-notebook),
306+
(is (match? #{{:form '(ns example-notebook),
309307
:deps set?}
310308
{:form '#{1 3 2}}
311309
{:jar string? :hash string?}}
312-
(-> "^:nextjournal.clerk/no-cache (ns example-notebook)
310+
(->> "^:nextjournal.clerk/no-cache (ns example-notebook)
313311
#{3 1 2}"
314-
analyze-string :->analysis-info vals set)))
315-
312+
analyze-string :->analysis-info vals set)))
316313
(testing "preserves *ns*"
317314
(with-ns-binding 'nextjournal.clerk.analyzer2-test
318315
(is (= (find-ns 'nextjournal.clerk.analyzer2-test)

test/nextjournal/clerk/analyzer_test.clj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@
297297
(-> "^:nextjournal.clerk/no-cache (ns example-notebook)
298298
#{3 1 2}"
299299
analyze-string :->analysis-info vals set)))
300-
301300
(testing "preserves *ns*"
302301
(with-ns-binding 'nextjournal.clerk.analyzer-test
303302
(is (= (find-ns 'nextjournal.clerk.analyzer-test)

0 commit comments

Comments
 (0)