Skip to content
This repository has been archived by the owner on Aug 10, 2019. It is now read-only.

Question: Route Resolve Unit Testing #6

Open
Carniatto opened this issue Feb 2, 2016 · 0 comments
Open

Question: Route Resolve Unit Testing #6

Carniatto opened this issue Feb 2, 2016 · 0 comments

Comments

@Carniatto
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant