title: Karma-Jasmine TypeError: this.ngRedux.getState is not a function
body: <p>I'm trying to run a test on one of my modules, which handles ngRedux.
  while running the test, i get  </p>
  
  <blockquote>
    <p>TypeError: this.ngRedux.getState is not a function</p>
  </blockquote>
  
  <p>The test im running is a simple</p>
  
  <pre><code>it("should create component:", () =&gt; {
      expect(comp).toBeDefined();
  });
  </code></pre>
  
  <p>package.json</p>
  
  <pre><code>"redux": "^3.6.0",
  "redux-logger": "^2.6.1",
  "redux-observable": "^0.12.2",
  "karma": "^1.7.1",
  "karma-chrome-launcher": "^2.2.0",
  "karma-coverage": "^1.1.1",
  "karma-jasmine": "^1.1.0",
  "karma-mocha-reporter": "^2.2.4",
  "karma-sourcemap-loader": "^0.3.7",
  "karma-webpack": "^2.0.4",
  "@angular/core": "4.3.6",
  </code></pre>
  
  <p>component code</p>
  
  <pre><code> ...
  let roleKinds = _.get(this.ngRedux.getState(), 'auth.user.Role', [])
          .filter(roleName =&gt; roles.indexOf(roleName) != -1);
  ...
  </code></pre>