File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments