chai-things icon indicating copy to clipboard operation
chai-things copied to clipboard

Use original all method if asserting on an object

Open ThomWright opened this issue 9 years ago • 0 comments

Fixes #24

Added two tests to confirm the behaviour for core Chai's should.have.all.keys works.

Modified the tests for should.all.equal on objects, since we now defer to the original method in this case.

I couldn't figure out the best way of doing this, but this seems to work. I'm happy to accept improvements/changes :)

ThomWright avatar Jan 19 '16 20:01 ThomWright