23.05.2017 - I think you are probably trying to test too much. If you need to be making all those $http calls and such just to test a controller then you are almost certainly doing .