We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
The following test succeeds, even tho the objects are not identical. Is there anyway to do a deep equals with rejectedWith? Similar to .to.eql maybe?
rejectedWith
.to.eql
it("Should fail", () => { return expect(Promise.reject({"error": "Error"})).to.be.rejectedWith({"error": "Eror"}); });