Closed sdjidjev closed 7 years ago
hm - not sure why coverage is failing here exactly. let me take a look
that's quite the high expectation!
ERROR: Coverage for branches (98.98%) does not meet global threshold (99%)
:-D I'm actually about to push a branch that gets it to 100%, which will avoid what's happening here, which is that your addition is increasing the denominator such that the branches percentage falls from 99 to 98, even tho your addition is 100% covered. I'll rebase yours after that's done.
k, rebased your branch (and added a commit that fixes using NaN
as the defaultValue). Once tests pass, this should be good to go!
Thanks!
requiredBy
: pass in a prop name and propType, and require that the prop is defined and is not its default value if the passed in prop name is truthy. if the default value is not provided, defaults to checking againstnull
.Example:
Passes validator
Does not pass validator