question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for deepStrictEqual assertion as native Node.js assert module does.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
pirannacommented, Apr 1, 2016

Ok, I’ll try to use directly GitHub master until this get published 😉 Thank you! 😄

1reaction
keithamuscommented, Mar 31, 2016

Our implementation of deepEqual is already strict. Well, it uses SameValue, aka Object.is, so it accounts for -+0 and NaN.

We could simply add an alias of deepStrictEqual to use deepEqual 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found