{"action":"created","issue":{"url":"https://api.github.com/repos/yamadapc/jsdoctest/issues/28","repository_url":"https://api.github.com/repos/yamadapc/jsdoctest","labels_url":"https://api.github.com/repos/yamadapc/jsdoctest/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/yamadapc/jsdoctest/issues/28/comments","events_url":"https://api.github.com/repos/yamadapc/jsdoctest/issues/28/events","html_url":"https://github.com/yamadapc/jsdoctest/issues/28","id":163283096,"number":28,"title":"Semicolon insertion breaks complex examples","user":{"login":"ianwremmel","id":1182361,"avatar_url":"https://avatars.githubusercontent.com/u/1182361?v=3","gravatar_id":"","url":"https://api.github.com/users/ianwremmel","html_url":"https://github.com/ianwremmel","followers_url":"https://api.github.com/users/ianwremmel/followers","following_url":"https://api.github.com/users/ianwremmel/following{/other_user}","gists_url":"https://api.github.com/users/ianwremmel/gists{/gist_id}","starred_url":"https://api.github.com/users/ianwremmel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianwremmel/subscriptions","organizations_url":"https://api.github.com/users/ianwremmel/orgs","repos_url":"https://api.github.com/users/ianwremmel/repos","events_url":"https://api.github.com/users/ianwremmel/events{/privacy}","received_events_url":"https://api.github.com/users/ianwremmel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-30T22:45:48Z","updated_at":"2016-07-01T01:16:44Z","closed_at":null,"body":"I'm trying to write a test that does an async action and makes some assertions about a non-deterministic result\r\n\r\n```javascript\r\ncreateResource()\r\n  .then(function(resource) {\r\n    assert(typeof resource.id !== 'undefined')\r\n    return 'success';\r\n  });\r\n  // async => 'success'\r\n```\r\n\r\nThis fails because jsdoctest seems to add a semicolon to the end of each line and therefore produces invalid javascript."},"comment":{"url":"https://api.github.com/repos/yamadapc/jsdoctest/issues/comments/229831037","html_url":"https://github.com/yamadapc/jsdoctest/issues/28#issuecomment-229831037","issue_url":"https://api.github.com/repos/yamadapc/jsdoctest/issues/28","id":229831037,"user":{"login":"yamadapc","id":3923654,"avatar_url":"https://avatars.githubusercontent.com/u/3923654?v=3","gravatar_id":"","url":"https://api.github.com/users/yamadapc","html_url":"https://github.com/yamadapc","followers_url":"https://api.github.com/users/yamadapc/followers","following_url":"https://api.github.com/users/yamadapc/following{/other_user}","gists_url":"https://api.github.com/users/yamadapc/gists{/gist_id}","starred_url":"https://api.github.com/users/yamadapc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yamadapc/subscriptions","organizations_url":"https://api.github.com/users/yamadapc/orgs","repos_url":"https://api.github.com/users/yamadapc/repos","events_url":"https://api.github.com/users/yamadapc/events{/privacy}","received_events_url":"https://api.github.com/users/yamadapc/received_events","type":"User","site_admin":false},"created_at":"2016-07-01T01:16:44Z","updated_at":"2016-07-01T01:16:44Z","body":"I'll fix it this week. For now if you move `.then` to the `createResource` line you should be fine."}}
{"actor":{"display_login":"yamadapc"}}