Inject Jasmine Spies With $provide

Trevor Ewen
InstructorTrevor Ewen

Social Share Links

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.