Skip to content

Commit

Permalink
doc: fix example in assert.md
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
LiviaMedeiros authored and targos committed Jul 12, 2022
1 parent 93ef113 commit c25da01
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/api/assert.md
Original file line number Diff line number Diff line change
Expand Up @@ -2137,7 +2137,7 @@ assert.throws(
);

// Using regular expressions to validate error properties:
throws(
assert.throws(
() => {
throw err;
},
Expand All @@ -2161,7 +2161,7 @@ throws(
);

// Fails due to the different `message` and `name` properties:
throws(
assert.throws(
() => {
const otherErr = new Error('Not found');
// Copy all enumerable properties from `err` to `otherErr`.
Expand Down Expand Up @@ -2206,7 +2206,7 @@ assert.throws(
);

// Using regular expressions to validate error properties:
throws(
assert.throws(
() => {
throw err;
},
Expand All @@ -2230,7 +2230,7 @@ throws(
);

// Fails due to the different `message` and `name` properties:
throws(
assert.throws(
() => {
const otherErr = new Error('Not found');
// Copy all enumerable properties from `err` to `otherErr`.
Expand Down

0 comments on commit c25da01

Please sign in to comment.