ng-patterns-testing icon indicating copy to clipboard operation
ng-patterns-testing copied to clipboard

Question: Route Resolve Unit Testing

Open Carniatto opened this issue 8 years ago • 0 comments

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

Carniatto avatar Feb 02 '16 13:02 Carniatto