Skip to content

rejectedWith Deep Equals #264

Open
Open
@fishcharlie

Description

@fishcharlie

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"});
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions