Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mk committed Oct 8, 2024
1 parent c802b55 commit 30d69d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/nextjournal/clerk/eval_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@
(eval/eval-string "(ns test-deref-hash (:require [nextjournal.clerk :as clerk])) (defonce !state (atom [(clerk/md \"_hi_\")])) @!state"))

(testing "won't eval forward declarations"
(is (thrown? Exception
(eval/eval-string "(ns test-forward-declarations {:nextjournal.clerk/no-cache true})
(is (:error
(eval/eval-string "(ns test-forward-declarations {:nextjournal.clerk/no-cache true})
(declare delayed-def)
(inc delayed-def)
(def delayed-def 123)")))))
Expand Down

0 comments on commit 30d69d6

Please sign in to comment.