Skip to content

Commit 836ffe4

Browse files
doc: fix markdown for expectFailure values
1 parent 330e3ee commit 836ffe4

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

doc/api/test.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -288,15 +288,16 @@ 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-
[<Error>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error),
295-
the tests will pass only if they throw a matching value.
296-
See [`assert.throws`][] for how each value type is handled.
297-
298-
Each of the following tests fails _despite_ being flagged `expectFailure`
299-
because the failure does not match the specific **expected** failure.
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),
296+
the tests will pass only if they throw a matching value. See [`assert.throws`][] for how each value
297+
type is handled.
298+
299+
Each of the following tests fails _despite_ being flagged `expectFailure` because the failure does
300+
not match the specific **expected** failure.
300301

301302
```js
302303
it('fails because regex does not match', {

0 commit comments

Comments
 (0)