The Wayback Machine - https://web.archive.org/web/20220509112017/https://github.com/nodejs/node/commit/c32f76d49e
Skip to content
Permalink
Browse files
doc: fix example in assert.md
PR-URL: #42786
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Beth Griggs <bgriggs@redhat.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Mestery <mestery@protonmail.com>
Reviewed-By: Harshitha K P <harshitha014@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
LiviaMedeiros authored and targos committed Apr 28, 2022
1 parent 6225370 commit c32f76d49e54d35ca507962758a2e7b0ec8ee267
Showing with 4 additions and 4 deletions.
  1. +4 −4 doc/api/assert.md
@@ -2155,7 +2155,7 @@ assert.throws(
);
// Using regular expressions to validate error properties:
throws(
assert.throws(
() => {
throw err;
},
@@ -2179,7 +2179,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`.
@@ -2224,7 +2224,7 @@ assert.throws(
);
// Using regular expressions to validate error properties:
throws(
assert.throws(
() => {
throw err;
},
@@ -2248,7 +2248,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`.

0 comments on commit c32f76d

Please sign in to comment.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.