From c4a4992cdd59d2c5ca3282bfbf2ba4c0b863eafc Mon Sep 17 00:00:00 2001 From: laramackey Date: Fri, 23 Jul 2021 09:55:33 +0100 Subject: [PATCH] [Docs] correct docs for `t.teardown` --- readme.markdown | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/readme.markdown b/readme.markdown index 60be9b41..078eed39 100644 --- a/readme.markdown +++ b/readme.markdown @@ -171,10 +171,6 @@ If `cb` returns a Promise, it will be implicitly awaited. If that promise reject Generate a new test that will be skipped over. -## test.teardown(cb) - -Register a callback to run after the individual test has completed. Multiple registered teardown callbacks will run in order. Useful for undoing side effects, closing network connections, etc. - ## 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. @@ -199,6 +195,10 @@ Declare the end of a test explicitly. If `err` is passed in `t.end` will assert Do not call `t.end()` if your test callback returns a Promise. +## t.teardown(cb) + +Register a callback to run after the individual test has completed. Multiple registered teardown callbacks will run in order. Useful for undoing side effects, closing network connections, etc. + ## t.fail(msg) Generate a failing assertion with a message `msg`.