Try this instead. The API changed for Jasmine 2.0:
authService.currentUser.and.returnValue('bob');
Documentation:
https://jasmine.github.io/tutorials/spying_on_properties
Try this instead. The API changed for Jasmine 2.0:
authService.currentUser.and.returnValue('bob');
Documentation:
https://jasmine.github.io/tutorials/spying_on_properties