ng-patterns-testing
ng-patterns-testing copied to clipboard
Question: Route Resolve Unit Testing
I'd like to ask how would be the best pattern to unit testing a controller that receives a injection via route resolve. The way I'doing right now:
beforeEach(module(function($provide) {
$provide.value('UserAccounts', {
query: angular.noop
});
}));
then inject into my controller