Skip to content

Proper way to use ngRedux in unit tests? #111

@frankandrobot

Description

@frankandrobot

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions