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

Sinon + needle: .firstCall doesn't work on stubbed methods #41

Closed
mereskin-zz opened this issue Oct 13, 2013 · 4 comments
Closed

Sinon + needle: .firstCall doesn't work on stubbed methods #41

mereskin-zz opened this issue Oct 13, 2013 · 4 comments

Comments

@mereskin-zz
Copy link

getCall(0) still works, though.

    sinon.stub(needle, 'post');
    needle.post(...);

    needle.post.firstCall // undefined
    needle.post.getCall(0) // Object
@tomas
Copy link
Owner

tomas commented Oct 13, 2013

That's weird. Isn't this supposed to be a bug with sinon, though?

@tomas
Copy link
Owner

tomas commented Dec 4, 2013

Bump?

@mereskin-zz
Copy link
Author

Looks like a sinon issue indeed. Closing.

@tomas
Copy link
Owner

tomas commented Dec 4, 2013

;)

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