evangalen / ng-improved-testing

Improves AngularJS testing
MIT License
21 stars 4 forks source link

Internally created $injector doesn't include "ngMock" #3

Closed evangalen closed 10 years ago

evangalen commented 10 years ago

The "ModuleBuilder" uses an internally created $injector that didn't include the "ngMock" module (it did include "ng"). Due to this services like "$location" (only provided by "ngMock" module of AngularJS 1.2+) and "$log" could not be mocked out by ngImprovedTesting.