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

TypeError: myfunc.should.have.been.called is not a function #88

Closed
JasperVanDenBosch opened this issue Jan 26, 2017 · 2 comments
Closed

Comments

@JasperVanDenBosch
Copy link

This doesn't seem to be allowed:

myfunc.draw.should.have.been.called();

Although plain chai seems to support it. The downside of this:

myfunc.draw.should.have.been.called;

is that JSHint doesn't like it.. am I missing something?

@mlazowik
Copy link

mlazowik commented Feb 18, 2017

Could be an error in docs. They used to support this syntax, but then dropped it in 2.0: chaijs/chai#371 (comment)

Some more info: chaijs/chai#690 (comment)

@JasperVanDenBosch
Copy link
Author

Got it! Thanks

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