Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
apply md macro to other set of types links
  • Loading branch information
JakobJingleheimer committed Mar 4, 2026
commit 1cc3b2237f2cac2736ce55aabc0ce6f11d745599
6 changes: 1 addition & 5 deletions doc/api/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -1730,11 +1730,7 @@ changes:
**Default:** `false`.
* `expectFailure` {boolean|string|RegExp|Function|Object|Error} If truthy, the
test is expected to fail. If a non-empty string is provided, that string is displayed
in the test results as the reason why the test is expected to fail. If a
[<RegExp>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp),
[<Function>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function),
[<Object>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object), or
[<Error>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error)
in the test results as the reason why the test is expected to fail. If a {RegExp|Function|Object|Error}
is provided directly (without wrapping in `{ match: … }`), the test passes
only if the thrown error matches, following the behavior of
[`assert.throws`][]. To provide both a reason and validation, pass an object
Expand Down
Loading