You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.
Hi,
There is a bug in s.number matchers when
min
ormax
is0
. An example:Issue is with
if (opts.min && opts.max && (value < opts.min || value > opts.max)) {
.0
,false
andempty string
can't passif(some_var)
.A helper needed here to just check value of
min
against beingnull
orundefined
. Something likeThis bug is available in some other matchers as well.
The text was updated successfully, but these errors were encountered: