{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/ava/issues/73","labels_url":"https://api.github.com/repos/sindresorhus/ava/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/ava/issues/73/comments","events_url":"https://api.github.com/repos/sindresorhus/ava/issues/73/events","html_url":"https://github.com/sindresorhus/ava/issues/73","id":110012297,"number":73,"title":"throws assertion does not work with await/async","user":{"login":"SamVerschueren","id":1913805,"avatar_url":"https://avatars.githubusercontent.com/u/1913805?v=3","gravatar_id":"","url":"https://api.github.com/users/SamVerschueren","html_url":"https://github.com/SamVerschueren","followers_url":"https://api.github.com/users/SamVerschueren/followers","following_url":"https://api.github.com/users/SamVerschueren/following{/other_user}","gists_url":"https://api.github.com/users/SamVerschueren/gists{/gist_id}","starred_url":"https://api.github.com/users/SamVerschueren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamVerschueren/subscriptions","organizations_url":"https://api.github.com/users/SamVerschueren/orgs","repos_url":"https://api.github.com/users/SamVerschueren/repos","events_url":"https://api.github.com/users/SamVerschueren/events{/privacy}","received_events_url":"https://api.github.com/users/SamVerschueren/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sindresorhus/ava/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/sindresorhus/ava/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-10-06T13:52:39Z","updated_at":"2015-10-17T20:19:01Z","closed_at":null,"body":"When using `await`/`async`, the throws() assertion doesn't work.\r\n\r\n```js\r\ntest('throws error', async t => {\r\n    t.throws(await fn(), Error);\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/sindresorhus/ava/issues/comments/148948853","html_url":"https://github.com/sindresorhus/ava/issues/73#issuecomment-148948853","issue_url":"https://api.github.com/repos/sindresorhus/ava/issues/73","id":148948853,"user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"created_at":"2015-10-17T20:19:01Z","updated_at":"2015-10-17T20:19:01Z","body":"In `got`, we have to [repeat `t.fail('Exception is not thrown');`](https://github.com/sindresorhus/got/commit/f7500d474e4f54003682c998d81a3aa9ce61612c#diff-bbc23533bfd4986af19324ccf2e7c4baR27) in a lot of tests, which is pretty sub-optimal."}}