-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Cannot read property 'length' of undefined #28
Comments
Here is what is happening:
So an easy fix is to change your assertion to The same thing happens when you do this:
Now we can think of some possible improvements to prevent this kind of errors. For example, always reject falsy values on array/object models without testing assertions. I need to think about it and see what is the most predictive behaviour. |
v2.3 is out 👍 |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
The text was updated successfully, but these errors were encountered: