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

Cannot use exist() as a function #57

Open
liorcode opened this issue Feb 2, 2015 · 1 comment
Open

Cannot use exist() as a function #57

liorcode opened this issue Feb 2, 2015 · 1 comment

Comments

@liorcode
Copy link

liorcode commented Feb 2, 2015

Chai's API allows exist to be use either as a property, or as a function: expect(foo).to.exist();. However, when using chai-jquery (on non-jQuery object) only the former option can be used; when trying to call exists(), you can an "object is not a function" error.

@danascheider
Copy link

I got this problem too and haven't figured out a solution other than just using expect(foo).to.exist;.

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