angular unit test with dependency injection - summary

Let the code speak for itself:

See the Pen jasmine-angular: dependency injection 3 by ronapelbaum (@ronapelbaum) on CodePen.

 

Read the posts:

unit test with DI p1

unit test with DI p2

unit test with DI p3

 

You can also play with this on github: https://github.com/ronapelbaum/angular-jasmine