ng-redux icon indicating copy to clipboard operation
ng-redux copied to clipboard

Proper way to use ngRedux in unit tests?

Open frankandrobot opened this issue 7 years ago • 1 comments

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.

frankandrobot avatar Oct 28 '16 20:10 frankandrobot

+1

rperrote avatar Oct 06 '17 20:10 rperrote