mirror of https://github.com/nodejs/node.git
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:
parent
5d7bd8616e
commit
4f68839910
|
@ -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
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue