Inject Jasmine Spies With $provide

Trevor Ewen
InstructorTrevor Ewen

Share this video with your friends

Send Tweet

One of the beautiful things about dependency injection in your AngularJS apps is the ability to replace dependencies in your unit tests. In this lesson Trevor looks at how to configure Jasmine spies as injectable replacements for dependencies for testing.