diff options
author | OliverOdo <rodomond.o@gmail.com> | 2021-10-07 17:16:40 +0300 |
---|---|---|
committer | Node.js GitHub Bot <github-bot@iojs.org> | 2021-10-11 12:32:03 +0300 |
commit | 4f688399105377178fd1ebfafe8a80bc0357ffe2 (patch) | |
tree | 1c4a329260814ccf4f2db46cb88425c5ffce85ba | |
parent | 5d7bd8616e6f50ef9d71585a3d66ecb324d8acaa (diff) |
doc: fix missing variable in deepStrictEqual example
PR-URL: https://github.com/nodejs/node/pull/40396
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
-rw-r--r-- | doc/api/assert.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/assert.md b/doc/api/assert.md index 3848cde97f6..94272b4caae 100644 --- a/doc/api/assert.md +++ b/doc/api/assert.md @@ -692,7 +692,7 @@ are recursively evaluated also by the following rules. import assert from 'assert/strict'; // This fails because 1 !== '1'. -deepStrictEqual({ a: 1 }, { a: '1' }); +assert.deepStrictEqual({ a: 1 }, { a: '1' }); // AssertionError: Expected inputs to be strictly deep-equal: // + actual - expected // |