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
The following line throws, because sinon.wrapMethod gets passed the entire property descriptor ({get, set, enumerable, configurable}) and attempts to wrap every "method" (read: property) in the descriptor.
varspy=sinon.spy(object,"property",["get"]);
The first one to throw is set which is undefined.
Side note: I don't see any documentation about getters/setters spies and stubs anywhere.
The text was updated successfully, but these errors were encountered:
Problem:
The following line throws, because
sinon.wrapMethod
gets passed the entire property descriptor ({get, set, enumerable, configurable}
) and attempts to wrap every "method" (read: property) in the descriptor.The first one to throw is
set
which isundefined
.Side note: I don't see any documentation about getters/setters spies and stubs anywhere.
The text was updated successfully, but these errors were encountered: