Downloaded 17 times






![AngularJS mocking library
Injecting and mocking Angular services
Included mocks
◦ $exceptionHandler
◦ $log $httpBackend◦ $log
◦ $interval
◦ $timeout
◦ $httpBackend$httpBackend$httpBackend$httpBackend
$httpBackend
.when('GET', '/api/1.0/event')
.respond(
[
{
‘event_name’ : ’javaCro’,
‘location’ : ’Porec’
},
. . .
]
)](https://image.slidesharecdn.com/javacro14-unittestinginangularjsslaventomac-140521093741-phpapp01/75/JavaCro-14-Unit-testing-in-AngularJS-Slaven-Tomac-7-2048.jpg)










The document outlines the process of unit testing AngularJS applications using tools such as Karma and Jasmine. It includes prerequisites, mocking services, and testing strategies, emphasizing the importance of automation in testing and development. The document encourages integrating these practices into continuous integration servers for improved development efficiency.