adriantoine / enzyme-to-json

Snapshot test your Enzyme wrappers
MIT License
947 stars 64 forks source link

fix incorrect key checking in default-props branch #112

Closed jiangzhu-genie closed 5 years ago

jiangzhu-genie commented 6 years ago

use key in defaultProps instead of defaultProps[key] to avoid evaluate condition as true for falsy value

sattaman commented 6 years ago

I'm using that branch and being hit by this bug I think

VincentLanglet commented 5 years ago

Thanks. This was included in this PR.