Skip to content
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

AssertionError: expected { Object (_bitField, _fulfillmentHandler0, ...) } to have a property 'length' #43

Open
ashishagarwal1686 opened this issue Jun 16, 2016 · 1 comment

Comments

@ashishagarwal1686
Copy link

ashishagarwal1686 commented Jun 16, 2016

I am getting assertion error.
my code is like this :

return expect(User.find({}).exec()).to
.have.length(0);

Don't know where the mistake is. Can anyone help me out with such problem.

@meeber
Copy link

meeber commented Jun 16, 2016

@ashishagarwal1686 Using .length as a method assertion is deprecated because of issues related to functions having a .length property that's immutable in older engines. Please try .lengthOf in its place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants