Skip to content

Commit a41a7a5

Browse files
committed
fixup!
1 parent 32e43c2 commit a41a7a5

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

doc/api/assert.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ assertion mode, error messages for objects display the objects, often truncated.
4444
For assertion methods that accept an optional `message` parameter, the message
4545
may be provided in one of the following forms:
4646

47-
- **string**: Used as-is. If additional arguments are supplied after the
47+
* **string**: Used as-is. If additional arguments are supplied after the
4848
`message` string, they are treated as printf-like substitutions (see
4949
[`util.format()`][]).
50-
- **Error**: If an `Error` instance is provided as `message`, that error is
50+
* **Error**: If an `Error` instance is provided as `message`, that error is
5151
thrown directly instead of an `AssertionError`.
52-
- **function**: A function of the form `(actual, expected) => string`. It is
52+
* **function**: A function of the form `(actual, expected) => string`. It is
5353
called only when the assertion fails and should return a string to be used as
5454
the error message. Non-string return values are ignored and the default
5555
message is used instead.
@@ -2543,5 +2543,6 @@ assert.partialDeepStrictEqual(
25432543
[`assert.strictEqual()`]: #assertstrictequalactual-expected-message
25442544
[`assert.throws()`]: #assertthrowsfn-error-message
25452545
[`getColorDepth()`]: tty.md#writestreamgetcolordepthenv
2546+
[`util.format()`]: util.md#utilformatformat-args
25462547
[enumerable "own" properties]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Enumerability_and_ownership_of_properties
25472548
[prototype-spec]: https://tc39.github.io/ecma262/#sec-ordinary-object-internal-methods-and-internal-slots

test/fixtures/errors/error_exit.snapshot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Exiting with code=1
2-
node:assert:*
3-
throw new AssertionError(obj);
2+
node:internal*assert*utils:*
3+
throw error;
44
^
55

66
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:

0 commit comments

Comments
 (0)