Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/api/assert.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/assert.md b/doc/api/assert.md
index da9a4ba5582..cc711959857 100644
--- a/doc/api/assert.md
+++ b/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`.