Skip to content

Commit 5a64319

Browse files
authored
Merge pull request #327 from leo-ppp/patch-1
Correct documentation of `wrap-run` hooks
2 parents 935e6ec + a9c4778 commit 5a64319

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)