title: redux-mock-store getActions returns empty array
body: <p>This is my action creator:</p>
  
  <pre><code>export function signinUser({login, password}){  
  
      return function(dispatch){      
          axios.post('/auth/signin', {login, password})
              .then((response)=&gt;{             
                  //-update state to indicate user is authenticated
                  var {username, userid, token} = response.data;
                  dispatch(authUser(token, username, userid));                
                  console.log(1)
              })
              .catch(()=&gt;{
                  //- show error message
                  dispatch(setErrorMessage('Bad Login Info'));                                
                  console.log(2)
              });
      }   
  }
  </code></pre>
  
  <p>The test:</p>
  
  <pre><code> describe('signinUser', ()=&gt;{
  
      var {signinUser} = actions;
      var arg;
  
      beforeEach(() =&gt; {
          arg = {
              login: 'john',
              password: '123'
          }           
      });
  
      afterEach(function () {
          nock.cleanAll()
      });
  
      it('should call setErrorMessage', ()=&gt;{     
  
          nock('http://localhost:5000/auth/signin').post('')              
              .reply(401)         
  
          var expectedActions = [
              {
                  type: 'SET_ERROR',
                  payload: 'Bad Login Info'
              }
          ];
  
          var store = mockStore({});          
          store.dispatch(signinUser({...arg}));
          expect(store.getActions()).to.equal(expectedActions)
      });    
  </code></pre>
  
  <p>The output is:</p>
  
  <pre><code>2
  AssertionError: expected [] to equal [ Array(1) ]
  </code></pre>
  
  <p>Which means - the action creator has been called - and the console.log(2) in the catch has been called!
  But somehow getActions returns an empty array.
  Please help me figure out why.</p>