{"action":"created","issue":{"url":"https://api.github.com/repos/arnaudbenard/redux-mock-store/issues/31","repository_url":"https://api.github.com/repos/arnaudbenard/redux-mock-store","labels_url":"https://api.github.com/repos/arnaudbenard/redux-mock-store/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/arnaudbenard/redux-mock-store/issues/31/comments","events_url":"https://api.github.com/repos/arnaudbenard/redux-mock-store/issues/31/events","html_url":"https://github.com/arnaudbenard/redux-mock-store/issues/31","id":141039861,"number":31,"title":"No longer works with redux-thunk","user":{"login":"skratchdot","id":434470,"avatar_url":"https://avatars.githubusercontent.com/u/434470?v=3","gravatar_id":"","url":"https://api.github.com/users/skratchdot","html_url":"https://github.com/skratchdot","followers_url":"https://api.github.com/users/skratchdot/followers","following_url":"https://api.github.com/users/skratchdot/following{/other_user}","gists_url":"https://api.github.com/users/skratchdot/gists{/gist_id}","starred_url":"https://api.github.com/users/skratchdot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skratchdot/subscriptions","organizations_url":"https://api.github.com/users/skratchdot/orgs","repos_url":"https://api.github.com/users/skratchdot/repos","events_url":"https://api.github.com/users/skratchdot/events{/privacy}","received_events_url":"https://api.github.com/users/skratchdot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-15T17:11:25Z","updated_at":"2016-03-16T19:56:39Z","closed_at":null,"body":"The following test case doesn't work (and it should IMO).  I was able to test code like this in v0.6, but can't in the new v1.0.2\r\n\r\n```js\r\n  it('should work with redux-thunk', (done) => {\r\n    function success() {\r\n      return {\r\n        type: 'FETCH_DATA_SUCCESS'\r\n      };\r\n    }\r\n    function asyncAction() {\r\n      return dispatch => {\r\n        setTimeout(() => {\r\n          dispatch(success());\r\n        }, 10);\r\n      };\r\n    }\r\n    const middlewares = [thunk];\r\n    const mockStore = configureMockStore(middlewares);\r\n    const store = mockStore({});\r\n    store.dispatch(asyncAction()).then(() => {\r\n      expect(store.getActions()[0]).toEqual(success())\r\n      done();\r\n    });\r\n  })\r\n```\r\n\r\nThanks for this great library BTW!"},"comment":{"url":"https://api.github.com/repos/arnaudbenard/redux-mock-store/issues/comments/197518190","html_url":"https://github.com/arnaudbenard/redux-mock-store/issues/31#issuecomment-197518190","issue_url":"https://api.github.com/repos/arnaudbenard/redux-mock-store/issues/31","id":197518190,"user":{"login":"thaggie","id":327611,"avatar_url":"https://avatars.githubusercontent.com/u/327611?v=3","gravatar_id":"","url":"https://api.github.com/users/thaggie","html_url":"https://github.com/thaggie","followers_url":"https://api.github.com/users/thaggie/followers","following_url":"https://api.github.com/users/thaggie/following{/other_user}","gists_url":"https://api.github.com/users/thaggie/gists{/gist_id}","starred_url":"https://api.github.com/users/thaggie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaggie/subscriptions","organizations_url":"https://api.github.com/users/thaggie/orgs","repos_url":"https://api.github.com/users/thaggie/repos","events_url":"https://api.github.com/users/thaggie/events{/privacy}","received_events_url":"https://api.github.com/users/thaggie/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T19:56:39Z","updated_at":"2016-03-16T19:56:39Z","body":"I'm having this trouble too upgrading from 0.0.6"}}