Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
doc: use correct signature for assert()
Browse files Browse the repository at this point in the history
The message argument is optional for both assert() and
assert.ok(). This commit makes message optional for assert().

PR-URL: #9003
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
  • Loading branch information
bsnote authored and cjihrig committed Jan 20, 2015
1 parent 7a8ea15 commit 430096a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/assert.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ access it with `require('assert')`.

Throws an exception that displays the values for `actual` and `expected` separated by the provided operator.

## assert(value, message), assert.ok(value[, message])
## assert(value[, message]), assert.ok(value[, message])

Tests if value is truthy, it is equivalent to `assert.equal(true, !!value, message);`

Expand Down

0 comments on commit 430096a

Please sign in to comment.