{"action":"created","issue":{"url":"https://api.github.com/repos/reactjs/redux/issues/1912","repository_url":"https://api.github.com/repos/reactjs/redux","labels_url":"https://api.github.com/repos/reactjs/redux/issues/1912/labels{/name}","comments_url":"https://api.github.com/repos/reactjs/redux/issues/1912/comments","events_url":"https://api.github.com/repos/reactjs/redux/issues/1912/events","html_url":"https://github.com/reactjs/redux/issues/1912","id":173412603,"number":1912,"title":"Docs: Add example how to test reducers with async action creators","user":{"login":"syndbg","id":6031925,"avatar_url":"https://avatars.githubusercontent.com/u/6031925?v=3","gravatar_id":"","url":"https://api.github.com/users/syndbg","html_url":"https://github.com/syndbg","followers_url":"https://api.github.com/users/syndbg/followers","following_url":"https://api.github.com/users/syndbg/following{/other_user}","gists_url":"https://api.github.com/users/syndbg/gists{/gist_id}","starred_url":"https://api.github.com/users/syndbg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syndbg/subscriptions","organizations_url":"https://api.github.com/users/syndbg/orgs","repos_url":"https://api.github.com/users/syndbg/repos","events_url":"https://api.github.com/users/syndbg/events{/privacy}","received_events_url":"https://api.github.com/users/syndbg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-26T09:44:24Z","updated_at":"2016-08-30T16:13:07Z","closed_at":"2016-08-30T16:13:07Z","body":"Currently I'm wondering how must an async action creator be tested against a reducer.\r\n\r\nhttp://redux.js.org/docs/recipes/WritingTests.html gives a great overview how to test async action creators only, but not against a reducer.\r\n\r\nAm I missing something here?"},"comment":{"url":"https://api.github.com/repos/reactjs/redux/issues/comments/243493303","html_url":"https://github.com/reactjs/redux/issues/1912#issuecomment-243493303","issue_url":"https://api.github.com/repos/reactjs/redux/issues/1912","id":243493303,"user":{"login":"markerikson","id":1128784,"avatar_url":"https://avatars.githubusercontent.com/u/1128784?v=3","gravatar_id":"","url":"https://api.github.com/users/markerikson","html_url":"https://github.com/markerikson","followers_url":"https://api.github.com/users/markerikson/followers","following_url":"https://api.github.com/users/markerikson/following{/other_user}","gists_url":"https://api.github.com/users/markerikson/gists{/gist_id}","starred_url":"https://api.github.com/users/markerikson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markerikson/subscriptions","organizations_url":"https://api.github.com/users/markerikson/orgs","repos_url":"https://api.github.com/users/markerikson/repos","events_url":"https://api.github.com/users/markerikson/events{/privacy}","received_events_url":"https://api.github.com/users/markerikson/received_events","type":"User","site_admin":false},"created_at":"2016-08-30T16:13:07Z","updated_at":"2016-08-30T16:13:07Z","body":"Yeah - generally you'd want to test that the action creator actually dispatches certain actions without caring how they might be interpreted, and test the reducer to verify its behavior based on state+action pairs.\r\n\r\nYou may be interested in some of the articles on [Redux-related testing](https://github.com/markerikson/react-redux-links/blob/master/react-redux-testing.md) that I have in my React/Redux links list - plenty of examples in there."}}
{"actor":{"display_login":"markerikson"}}