Skip to content

Commit 1cc3b22

Browse files
apply md macro to other set of types links
1 parent 3540fae commit 1cc3b22

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
@@ -1730,11 +1730,7 @@ changes:
17301730
**Default:** `false`.
17311731
* `expectFailure` {boolean|string|RegExp|Function|Object|Error} If truthy, the
17321732
test is expected to fail. If a non-empty string is provided, that string is displayed
1733-
in the test results as the reason why the test is expected to fail. If a
1734-
[<RegExp>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp),
1735-
[<Function>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function),
1736-
[<Object>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object), or
1737-
[<Error>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error)
1733+
in the test results as the reason why the test is expected to fail. If a {RegExp|Function|Object|Error}
17381734
is provided directly (without wrapping in `{ match: … }`), the test passes
17391735
only if the thrown error matches, following the behavior of
17401736
[`assert.throws`][]. To provide both a reason and validation, pass an object

0 commit comments

Comments
 (0)