From 279576302ab34ed93190eddbe7778fc712adca4f Mon Sep 17 00:00:00 2001 From: Raynos Date: Fri, 25 Dec 2015 17:49:17 -0800 Subject: [PATCH] document onFinish hook --- readme.markdown | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/readme.markdown b/readme.markdown index 04368de0..0d537d0c 100644 --- a/readme.markdown +++ b/readme.markdown @@ -152,6 +152,11 @@ don't call `t.end()` explicitly, your test will hang. Generate a new test that will be skipped over. +## test.onFinish(fn) + +The onFinish hook will get invoked when ALL tape tests have finished +right before tape is about to print the test summary. + ## t.plan(n) Declare that `n` assertions should be run. `t.end()` will be called