-
Notifications
You must be signed in to change notification settings - Fork 107
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
alwaysCalledWithExactly is not a function #139
Comments
I found this too, it looks like the README is misleading. |
This is the only instance (besides the `not` methods) where we don't just tack the method name on the end, so it seems worth a call-out, as it has already confused at least two people per chaijs#139
I think the README is correct, but it's perhaps not totally obvious unless you read the right-hand side of the table more closely. Here are just the relevant rows from the README:
The correct I've opened #153 to add a clarifying note to call this out, I think that's about all that is to be done here. |
My error:
(...).to.have.been.alwaysCalledWith is not a function
My code
My versions: chai: 3.5.0 sinon:7.2.2 sinon-chai:3.3.0
I get the same result when I try to use
alwaysCalledWith
, but I don't have any problem usingcalledWith
orcalledWithExactly
(except of course that they're not the assertion I need).I noticed that
alwaysCalledWith
andalwaysCalledWithExactly
are missing from the bottom of lib/sinon-chai.js, is this a coincidence?alwaysCalledWith
andalwaysCalledWithExactly
are listed in the README, so I assume they should be available.https://github.com/domenic/sinon-chai/blob/fb4f82a684db5aad277163943ae4c6732b5d7a22/lib/sinon-chai.js#L131-L148
The text was updated successfully, but these errors were encountered: