File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -958,7 +958,7 @@ benefit in catching a rejection and then rejecting it again. Instead, consider
958
958
adding a comment next to the specific code path that should not reject and keep
959
959
error messages as expressive as possible.
960
960
961
- If specified, ` error ` can be a [ ` Class ` ] [ ] , [ ` RegExp ` ] [ ] or a validation
961
+ If specified, ` error ` can be a [ ` Class ` ] [ ] , [ ` RegExp ` ] [ ] , or a validation
962
962
function. See [ ` assert.throws() ` ] [ ] for more details.
963
963
964
964
Besides the async nature to await the completion behaves identically to
@@ -1040,7 +1040,7 @@ parameter, then an [`AssertionError`][] is thrown. If the error is of a
1040
1040
different type, or if the ` error ` parameter is undefined, the error is
1041
1041
propagated back to the caller.
1042
1042
1043
- If specified, ` error ` can be a [ ` Class ` ] [ ] , [ ` RegExp ` ] [ ] or a validation
1043
+ If specified, ` error ` can be a [ ` Class ` ] [ ] , [ ` RegExp ` ] [ ] , or a validation
1044
1044
function. See [ ` assert.throws() ` ] [ ] for more details.
1045
1045
1046
1046
The following, for instance, will throw the [ ` TypeError ` ] [ ] because there is no
You can’t perform that action at this time.
0 commit comments