Closed chrismejia closed 5 days ago
to.deep.equal() is more explicit and potentially more readable to those who might not be familiar with to.eql().
to.deep.equal()
to.eql()
const obj1 = { a: 1, b: { c: 2 } }; const obj2 = { a: 1, b: { c: 2 } }; expect(obj1).to.deep.equal(obj2); // would become expect(obj1).to.eql(obj2); // Passes
What needs to be updated/changed? Why?
to.deep.equal()
is more explicit and potentially more readable to those who might not be familiar withto.eql()
.Sample Changes