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
Next Next commit
leverage auto-linking md macro
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
JakobJingleheimer and aduh95 authored Mar 4, 2026
commit 059bdf1d315e3bd536f5d176e6cd536464b4385d
6 changes: 1 addition & 5 deletions doc/api/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,7 @@ it('should do the thing', { expectFailure: 'feature not implemented' }, () => {
```

If the value of `expectFailure` is 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),
{RegExp|Function|Object|Error}
the tests will pass only if they throw a matching value. See [`assert.throws`][] for how each value
type is handled.

Expand Down
Loading