-
-
Notifications
You must be signed in to change notification settings - Fork 698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error or not updated docs on assert.isAbove and isBelow #980
Comments
Hi @v1adko, thanks for the issue. Per #691 and #692, these assertions were changed to only accept numbers, but only the bdd documentation got updated. However, I think it's reasonable that these assertions should also accept One thing I'm not sure about is if the assertion should allow a number to be compared to a An alternative would be to keep the current behavior of |
I agree with matching values. I think we should ensure something like |
I agree with @keithamus. I think there should be a type comparison and |
To further the argument for expanding |
@keithamus Agreed but important to note that the current assertions are |
Oops, yes, I meant to say we could expand |
Hi.
assert.isAbove
andassert.isBelow
used to take Dates as possible inputs and worked fine, but since v4.0.0 it errors withexpected *date* to be a number
resulting in numerous failed test-cases throughout my codebase after an update from 3.5.So my guess is either the documentation was not updated (as it currently lists {Mixed} type for an input) or it's a bug - either way there seems to be a problem. Just wanted to ask which one is it.
It's reproducible both in Mocha (Node) and in the browser (dev console on the official website with
4.0.0-canary.2
at the moment of this issue)Is there is indeed a problem or have I misunderstood something?
And how can I help?
The text was updated successfully, but these errors were encountered: