Skip to content

Commit

Permalink
Merge pull request #141 from AWinterman/endArg
Browse files Browse the repository at this point in the history
adds note on t.end(arg) behavior
  • Loading branch information
Raynos committed Jan 26, 2015
2 parents d1e043a + 35fd42b commit 53e3cc3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions readme.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,10 @@ Declare that `n` assertions should be run. `t.end()` will be called
automatically after the `n`th assertion. If there are any more assertions after
the `n`th, or after `t.end()` is called, they will generate errors.

## t.end()
## t.end(err)

Declare the end of a test explicitly.
Declare the end of a test explicitly. If `err` is passed in `t.end` will assert
that it is non-falsey.

## t.fail(msg)

Expand Down

0 comments on commit 53e3cc3

Please sign in to comment.