rejectedWith Deep Equals
fishcharlie opened this issue · 0 comments
fishcharlie commented
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?
it("Should fail", () => {
return expect(Promise.reject({"error": "Error"})).to.be.rejectedWith({"error": "Eror"});
});