Skip to content

Commit 53e3cc3

Browse files
committed
Merge pull request #141 from AWinterman/endArg
adds note on t.end(arg) behavior
2 parents d1e043a + 35fd42b commit 53e3cc3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

readme.markdown

+3-2
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,10 @@ Declare that `n` assertions should be run. `t.end()` will be called
103103
automatically after the `n`th assertion. If there are any more assertions after
104104
the `n`th, or after `t.end()` is called, they will generate errors.
105105

106-
## t.end()
106+
## t.end(err)
107107

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

110111
## t.fail(msg)
111112

0 commit comments

Comments
 (0)