{"action":"opened","issue":{"url":"https://api.github.com/repos/dziamid/parse-mock/issues/2","labels_url":"https://api.github.com/repos/dziamid/parse-mock/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/dziamid/parse-mock/issues/2/comments","events_url":"https://api.github.com/repos/dziamid/parse-mock/issues/2/events","html_url":"https://github.com/dziamid/parse-mock/issues/2","id":67962580,"number":2,"title":"Example doesn't show how to handle async blocks","user":{"login":"fatuhoku","id":430233,"avatar_url":"https://avatars.githubusercontent.com/u/430233?v=3","gravatar_id":"","url":"https://api.github.com/users/fatuhoku","html_url":"https://github.com/fatuhoku","followers_url":"https://api.github.com/users/fatuhoku/followers","following_url":"https://api.github.com/users/fatuhoku/following{/other_user}","gists_url":"https://api.github.com/users/fatuhoku/gists{/gist_id}","starred_url":"https://api.github.com/users/fatuhoku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatuhoku/subscriptions","organizations_url":"https://api.github.com/users/fatuhoku/orgs","repos_url":"https://api.github.com/users/fatuhoku/repos","events_url":"https://api.github.com/users/fatuhoku/events{/privacy}","received_events_url":"https://api.github.com/users/fatuhoku/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-12T21:36:19Z","updated_at":"2015-04-12T21:36:19Z","closed_at":null,"body":"The example given in the README:\r\n```\r\n    expect(getUser()).toBeUndefined();\r\n\r\n    loadUser(); //function that invokes Query.find\r\n\r\n    expect(getUser()).toBeDefined();\r\n    expect(stub.callCount).toEqual(1); //do assertions on stub object if necessary\r\n```\r\n\r\nSorry, I'm relatively new to Javascript Async unit testing. It's always useful to have these things spelled out for newbies ;)."}}