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>
This commit is contained in:
OliverOdo 2021-10-07 21:16:40 +07:00 committed by Node.js GitHub Bot
parent 5d7bd8616e
commit 4f68839910
1 changed files with 1 additions and 1 deletions

View File

@ -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
//