Skip to content

Commit

Permalink
[Docs] correct docs for t.teardown
Browse files Browse the repository at this point in the history
  • Loading branch information
laramackey authored and ljharb committed Jul 23, 2021
1 parent a68277c commit c4a4992
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions readme.markdown
Expand Up @@ -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.
Expand All @@ -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`.
Expand Down

0 comments on commit c4a4992

Please sign in to comment.