Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proper way to use ngRedux in unit tests? #111

Open
frankandrobot opened this issue Oct 28, 2016 · 1 comment
Open

Proper way to use ngRedux in unit tests? #111

frankandrobot opened this issue Oct 28, 2016 · 1 comment

Comments

@frankandrobot
Copy link

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.

@rperrote
Copy link

rperrote commented Oct 6, 2017

+1

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

No branches or pull requests

2 participants