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
Moving functions added to the spy prototype to the spy instance. #10
base: master
Are you sure you want to change the base?
Conversation
…rate changes to support jasmine 2.x
…rate changes to support jasmine 2.x
…rate changes to support jasmine 2.x
…rate changes to support jasmine 2.x
…rate changes to support jasmine 2.x
This is a massively breaking change, no? How can we do this such that we also support back compat for 1.x, since that is still used by the majority of users. On Thu, Nov 20, 2014 at 10:08 PM, Matt Long notifications@github.com
|
It is. To avoid a major version change, I could change it so that for 1.x Or, one thing I haven't tried is overriding Jasmine's cresteSpy to simply On Nov 20, 2014 11:07 PM, "Justin Searls" notifications@github.com wrote:
|
that would certainly do it. you could probably do some basic feature detection on the spy and branch to figure out which approach to attempt. On Fri, Nov 21, 2014 at 5:56 AM, Matt Long notifications@github.com
|
One of the biggest changes is to prepare for Jasmine 2.x suport, which exposes "Spy" differently. We can no longer add new functions directly to the protoype. So, the functions we used to add to the prototype are now simply being added to the spy instance by using the new
stealthy
method.someSpy = jasmine.createSpy()
becomessomeSpy = stealthy(jasmine.createSpy())
.