Click in order · Angular course · Module 11: Testing
Spying on an existing method
Arrange the line that spies on the log method of an existing service: spyOn(loggerService, 'log')
Items to click
- , 'log'
- loggerService
- (
- spyOn
- )
You can check the correct answer by solving this task in the CodeWorlds game.