michelsalib / chai-shallow-deep-equal

Shallow deep equal for chai
20 stars 9 forks source link

Added "null" and "undefined" expectations #7

Closed pbihler closed 9 years ago

pbihler commented 9 years ago

To allow testing for the absence of properties

michelsalib commented 9 years ago

Thanks for you PR @pbihler. Maybe undefined expectation makes more sense?

pbihler commented 9 years ago

Yes, you're right. I refactored the code, so "null" and "undefined" are both handled individually

michelsalib commented 9 years ago

After this small label change we can merge.

pbihler commented 9 years ago

Sounds good. "to be null" as well...

michelsalib commented 9 years ago

Thanks @pbihler

michelsalib commented 9 years ago

Released in 1.1.0