{"action":"created","issue":{"url":"https://api.github.com/repos/mjackson/expect/issues/77","repository_url":"https://api.github.com/repos/mjackson/expect","labels_url":"https://api.github.com/repos/mjackson/expect/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/mjackson/expect/issues/77/comments","events_url":"https://api.github.com/repos/mjackson/expect/issues/77/events","html_url":"https://github.com/mjackson/expect/issues/77","id":140946629,"number":77,"title":"expect(...).toEqual(...) hangs if not equal","user":{"login":"davidvuong","id":1312550,"avatar_url":"https://avatars.githubusercontent.com/u/1312550?v=3","gravatar_id":"","url":"https://api.github.com/users/davidvuong","html_url":"https://github.com/davidvuong","followers_url":"https://api.github.com/users/davidvuong/followers","following_url":"https://api.github.com/users/davidvuong/following{/other_user}","gists_url":"https://api.github.com/users/davidvuong/gists{/gist_id}","starred_url":"https://api.github.com/users/davidvuong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidvuong/subscriptions","organizations_url":"https://api.github.com/users/davidvuong/orgs","repos_url":"https://api.github.com/users/davidvuong/repos","events_url":"https://api.github.com/users/davidvuong/events{/privacy}","received_events_url":"https://api.github.com/users/davidvuong/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-15T11:36:19Z","updated_at":"2016-05-04T04:41:45Z","closed_at":"2016-03-15T17:15:52Z","body":"This happens when I'm using `expect` with `redux-mock-store` and `redux-thunk` so I'm not sure if this is something you guys can fix but I'll report it anyway. Feel free to close this issue if it can't be fixed here.\r\n\r\nHere's an example: https://github.com/davidvuong/node-react-bp/blob/master/test/actions/ColoredSquareActionCreators-test.js#L17-L40\r\n\r\nIf you replace the body:\r\n\r\n```js\r\nstore.dispatch(actions.fetchColor()).then(() => {\r\n  expect(store.getActions()).toEqual(expectedActions);\r\n  done();\r\n});\r\n```\r\n\r\nwith\r\n\r\n```js\r\nstore.dispatch(actions.fetchColor()).then(() => {\r\n  expect({}).toEqual([]);\r\n  done();\r\n});\r\n```\r\n\r\nI get an error saying that `done` is never called because the statement above it hangs (not sure for how longer but longer than the default timeout):\r\n\r\n```\r\n  1) ColoredSquareActionCreators should create async action when fetching color:\r\n     Error: timeout of 2000ms exceeded. Ensure the done() callback is being called in this test.\r\n```\r\n\r\nAny ideas why?"},"comment":{"url":"https://api.github.com/repos/mjackson/expect/issues/comments/216741468","html_url":"https://github.com/mjackson/expect/issues/77#issuecomment-216741468","issue_url":"https://api.github.com/repos/mjackson/expect/issues/77","id":216741468,"user":{"login":"ngthorg","id":4083429,"avatar_url":"https://avatars.githubusercontent.com/u/4083429?v=3","gravatar_id":"","url":"https://api.github.com/users/ngthorg","html_url":"https://github.com/ngthorg","followers_url":"https://api.github.com/users/ngthorg/followers","following_url":"https://api.github.com/users/ngthorg/following{/other_user}","gists_url":"https://api.github.com/users/ngthorg/gists{/gist_id}","starred_url":"https://api.github.com/users/ngthorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngthorg/subscriptions","organizations_url":"https://api.github.com/users/ngthorg/orgs","repos_url":"https://api.github.com/users/ngthorg/repos","events_url":"https://api.github.com/users/ngthorg/events{/privacy}","received_events_url":"https://api.github.com/users/ngthorg/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T04:41:45Z","updated_at":"2016-05-04T04:41:45Z","body":"```\r\nstore.dispatch(actions.fetchColor()).then(() => {\r\n  expect(store.getActions()).toEqual(expectedActions);\r\n}).then(done).catch(done);\r\n```"}}