Skip to content

Commit 059bdf1

Browse files
leverage auto-linking md macro
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 836ffe4 commit 059bdf1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

doc/api/test.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,7 @@ it('should do the thing', { expectFailure: 'feature not implemented' }, () => {
288288
```
289289

290290
If the value of `expectFailure` is a
291-
[`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp),
292-
[`Function`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function),
293-
[`Object`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object),
294-
or
295-
[`Error`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error),
291+
{RegExp|Function|Object|Error}
296292
the tests will pass only if they throw a matching value. See [`assert.throws`][] for how each value
297293
type is handled.
298294

0 commit comments

Comments
 (0)