2 ms·
Definitely agree with this. The function passed to the inject() method where you set up your controller and inject mocks seems to have a bunch of repetition in
by awinder 13y ago
Definitely agree with this. The function passed to the inject() method where you set up your controller and inject mocks seems to have a bunch of repetition in the unit test suites I've been writing. You can use $provide (http://docs.angularjs.org/api/AUTO.$provide http://docs.angularjs.org/api/AUTO.$provide) to swap dependencies at the injector level and I'm starting to wonder if doing that would be a lot more repeatable across unit test suites.