deepStrictEqual
See original GitHub issueAdd support for deepStrictEqual assertion as native Node.js assert
module does.
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (10 by maintainers)
Top Results From Across the Web
Node.js assert.deepStrictEqual() Method - W3Schools
The assert.deepStrictEqual() method tests if two objects, and their child objects, are equal, using the === operator. If the two objects are not...
Read more >Assert | Node.js v19.3.0 Documentation
deepEqual() will behave like assert.deepStrictEqual() . In strict assertion mode, error messages for objects display a diff. In legacy assertion mode, error ...
Read more >Node.js assert.deepStrictEqual() Function - GeeksforGeeks
The assert module provides a set of assertion functions for verifying invariants. The assert.deepStrictEqual() function tests for deep equality ...
Read more >What is assert.deepStrictEqual() in Node.js? - Educative.io
The deepStrictEqual method of the assert module in Node.js uses the === operator (SameValue Comparison) to check for strict equality between two objects....
Read more >assert.deepStrictEqual() function in Node.js - Tutorialspoint
This function is used to test the deep equality between the actual and expected parameters. An assertion error will be raised if the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok, I’ll try to use directly GitHub master until this get published 😉 Thank you! 😄
Our implementation of
deepEqual
is already strict. Well, it usesSameValue
, akaObject.is
, so it accounts for-+0
andNaN
.We could simply add an alias of
deepStrictEqual
to usedeepEqual
for method name parity with Node, but Chai still won’t be a drop in replacement for Node.BTW, we’ve never had a request to make
deepEqual
less strict.