Browse Source

doc: clarify assert.fail doc

PR-URL: https://github.com/nodejs/node/pull/4186
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: Roman Klauke <romaaan.git@gmail.com>
Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
v4.x
Rich Trott 9 years ago
committed by Myles Borins
parent
commit
c35a409cbe
  1. 5
      doc/api/assert.markdown

5
doc/api/assert.markdown

@ -62,8 +62,9 @@ Tests shallow, coercive equality with the equal comparison operator ( `==` ).
## assert.fail(actual, expected, message, operator)
Throws an exception that displays the values for `actual` and `expected`
separated by the provided operator.
Throws an `AssertionError`. If `message` is falsy, it displays the values for
`actual` and `expected` separated by the provided `operator`. Otherwise, it
displays `message` (and does not use `actual`, `expected`, and `operator`).
## assert.ifError(value)

Loading…
Cancel
Save