Skip to content

Commit 3540fae

Browse files
authored
minimizing diff
1 parent 059bdf1 commit 3540fae

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

doc/api/test.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -287,13 +287,12 @@ it('should do the thing', { expectFailure: 'feature not implemented' }, () => {
287287
});
288288
```
289289

290-
If the value of `expectFailure` is a
291-
{RegExp|Function|Object|Error}
292-
the tests will pass only if they throw a matching value. See [`assert.throws`][] for how each value
293-
type is handled.
290+
If the value of `expectFailure` is a {RegExp|Function|Object|Error}
291+
the tests will pass only if they throw a matching value.
292+
See [`assert.throws`][] for how each value type is handled.
294293

295-
Each of the following tests fails _despite_ being flagged `expectFailure` because the failure does
296-
not match the specific **expected** failure.
294+
Each of the following tests fails _despite_ being flagged `expectFailure`
295+
because the failure does not match the specific **expected** failure.
297296

298297
```js
299298
it('fails because regex does not match', {

0 commit comments

Comments
 (0)