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:
pm.expect(a).to.eql(""); pm.expect(a).to.be.eql(""); pm.expect(a).is.eql("");
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;
.to.eql
As a side note; I know there are differences between using .eql (deeply) and .equal (strictly).
.eql
.equal
More info on the Chai JS framework can be found here, along with detailed descriptions of the assertion options.