Skip to content

Commit a9c4778

Browse files
authored
Correct documentation of wrap-run hooks
1 parent c3b4bfb commit a9c4778

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/10_hooks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,10 @@ Most of Kaocha's hooks have `pre-` and `post-` variants, but we don't have
172172
per-test level, in this case you can use `wrap-run` to "wrap" Kaocha's run
173173
function.
174174

175-
In particular this wraps `kaocha.testable/-run`, so it receives a two argument function (the arguments are testable and test-plan), and should return such a function. `wrap-run` also receives the test-plan directly.
175+
In particular this wraps `kaocha.testable/-run`, so it receives a two argument function `run` (the arguments are testable and test-plan), and should return such a function.
176176

177177
``` clojure
178-
(defn my-wrap-run-hook [run _test-plan]
178+
(defn my-wrap-run-hook [run]
179179
(fn [testable test-plan]
180180
(println "about to run" (:kaocha.testable/id testable))
181181
(run testable test-plan)))

0 commit comments

Comments
 (0)