How to change return value of jasmine spy?
Try this instead. The API changed for Jasmine 2.0:
authService.currentUser.and.returnValue('bob');
Documentation:
http://jasmine.github.io/2.0/introduction.html#section-Spies
Try this instead. The API changed for Jasmine 2.0:
authService.currentUser.and.returnValue('bob');
Documentation:
http://jasmine.github.io/2.0/introduction.html#section-Spies