Skip to content

Commit c32f76d

Browse files
LiviaMedeirostargos
authored andcommitted
doc: fix example in assert.md
PR-URL: #42786 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Beth Griggs <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Akhil Marsonya <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Mestery <[email protected]> Reviewed-By: Harshitha K P <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 6225370 commit c32f76d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/assert.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -2155,7 +2155,7 @@ assert.throws(
21552155
);
21562156

21572157
// Using regular expressions to validate error properties:
2158-
throws(
2158+
assert.throws(
21592159
() => {
21602160
throw err;
21612161
},
@@ -2179,7 +2179,7 @@ throws(
21792179
);
21802180

21812181
// Fails due to the different `message` and `name` properties:
2182-
throws(
2182+
assert.throws(
21832183
() => {
21842184
const otherErr = new Error('Not found');
21852185
// Copy all enumerable properties from `err` to `otherErr`.
@@ -2224,7 +2224,7 @@ assert.throws(
22242224
);
22252225

22262226
// Using regular expressions to validate error properties:
2227-
throws(
2227+
assert.throws(
22282228
() => {
22292229
throw err;
22302230
},
@@ -2248,7 +2248,7 @@ throws(
22482248
);
22492249

22502250
// Fails due to the different `message` and `name` properties:
2251-
throws(
2251+
assert.throws(
22522252
() => {
22532253
const otherErr = new Error('Not found');
22542254
// Copy all enumerable properties from `err` to `otherErr`.

0 commit comments

Comments
 (0)