mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 15:30:56 +01:00
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>
This commit is contained in:
parent
e3187cc81e
commit
70fb06a90b
@ -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…
Reference in New Issue
Block a user