ng-redux
ng-redux copied to clipboard
Proper way to use ngRedux in unit tests?
I would like to use the "real" ngRedux in tests, but the only way I've seen is to use a mock. For example,
beforeEach(angular.mock.module(function($provide) {
$provide.service('$ngRedux', function() {
this.connect = function() {
return function() {
return function(){}
};
};
});
I'm in the middle of testing a hybrid Angular/Redux app where using the real ngRedux in unit tests would add a lot of value.
+1