What is the difference between all the .eql assertions?

I have found different ways to write an assertion that checks equality. But I’ve found no explanation what is the difference between them? And are there more of them? For example:


Hi @andekis

I’m not a Chai JS expert so I can only give my opinion… But,

As far as I am aware, while all of those may work, the accurate way to script using the Chai JS framework would be to use;


As a side note; I know there are differences between using .eql (deeply) and .equal (strictly).

More info on the Chai JS framework can be found here, along with detailed descriptions of the assertion options.