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`.