You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 6, 2018. It is now read-only.
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?)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 atobj.method
, while what is returned sports theexpectation
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 asverify
won't exist. (Am I missing something?)The text was updated successfully, but these errors were encountered: