Gwendolyn Van Hove
Gwendolyn Van Hove
@ChrisBellew based on what you have in that example, you should be able to change the strategy for the inner `beforeEach`, something like this.: ```javascript beforeEach(() => { foo.bar.and.returnValue(2); });...
That probably means that `foo.bar` isn't a spy at that point, if `.and` is returning `undefined`, possibly due to some other configuration. When I run the following spec, everything works...
@sc-lewis-notestine I'm glad you found something that works for you. Note that you might want to check `calls.mostRecent().args` to make sure that it is the last call to `$location.search()` that...
@OscarGodson Maybe something got lost in the simplification process, but from what you've got there it sounds like you really just want a unit test of the `Child` object without...
The older github issues asking to restore a spy all centered around wanting to clean up spies installed with `spyOn` at the end of the spec. Since Jasmine handles this...
@argelj289 can you provide a fully contained example suite that demonstrates the behavior you are describing? From your message, I'm not sure I understand what you're seeing and what you...
@Antoniossss Jasmine doesn't currently provide a way to remove a spy during the execution of a single spec. This is because Jasmine will clean up spies in between specs to...
If possible, I'd still like to see something more general (as [I mentioned](https://github.com/jasmine/jasmine/pull/1688#issuecomment-488880026)). This would also allow mixing and matching strategies, instead of requiring the use of a full fake...
See [my comment](https://github.com/jasmine/jasmine/issues/971#issuecomment-156576842) in the #971 (referenced from #1127) about some of the difficulties related to this. The main issue is that a given matcher doesn't know whether the user...
If you want to report additional context around an expectation, you should also take a look at the new [`withContext`](https://jasmine.github.io/api/edge/matchers#withContext) matcher helper. Additionally, Jasmine doesn't report (and doesn't expect you...