@@ -44,12 +44,12 @@ assertion mode, error messages for objects display the objects, often truncated.
4444For assertion methods that accept an optional ` message ` parameter, the message
4545may 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
0 commit comments