Skip to content
This repository has been archived by the owner on Oct 6, 2018. It is now read-only.

Confusing: "Overrides obj.method with a mock function and returns it" #6

Open
timmolendijk opened this issue Dec 19, 2014 · 0 comments

Comments

@timmolendijk
Copy link

The description here confuses me: "Overrides obj.method with a mock function and returns it."

It appears to say that sinon.mock(obj).expects("method") returns the same function as the one that is put in place at obj.method, while what is returned sports the expectation interface and the replacement function doesn't.

Related: as far as I can reproduce, the jQuery.ajax.verify() call as mentioned here will not work as verify won't exist. (Am I missing something?)

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

No branches or pull requests

1 participant