{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/ava/issues/113","labels_url":"https://api.github.com/repos/sindresorhus/ava/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/ava/issues/113/comments","events_url":"https://api.github.com/repos/sindresorhus/ava/issues/113/events","html_url":"https://github.com/sindresorhus/ava/issues/113","id":114389644,"number":113,"title":"power-assert output fails when using async/await","user":{"login":"jamestalmage","id":4082216,"avatar_url":"https://avatars.githubusercontent.com/u/4082216?v=3","gravatar_id":"","url":"https://api.github.com/users/jamestalmage","html_url":"https://github.com/jamestalmage","followers_url":"https://api.github.com/users/jamestalmage/followers","following_url":"https://api.github.com/users/jamestalmage/following{/other_user}","gists_url":"https://api.github.com/users/jamestalmage/gists{/gist_id}","starred_url":"https://api.github.com/users/jamestalmage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamestalmage/subscriptions","organizations_url":"https://api.github.com/users/jamestalmage/orgs","repos_url":"https://api.github.com/users/jamestalmage/repos","events_url":"https://api.github.com/users/jamestalmage/events{/privacy}","received_events_url":"https://api.github.com/users/jamestalmage/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-31T05:48:15Z","updated_at":"2015-10-31T09:13:39Z","closed_at":null,"body":"test.js\r\n```js\r\nimport test from 'ava';\r\n\r\nfunction foo() {\r\n\treturn Promise.resolve(true);\r\n}\r\n\r\ntest('foo', async t => {\r\n\tt.plan(1);\r\n\tt.ok(await foo() === false);\r\n});\r\n```\r\n\r\noutput\r\n```\r\n  Error: Line 1: Unexpected identifier\r\n    at Test.<anonymous> (/.../test.js:9:4)\r\n    at step (/.../test.js:5:273)\r\n```"},"comment":{"url":"https://api.github.com/repos/sindresorhus/ava/issues/comments/152717121","html_url":"https://github.com/sindresorhus/ava/issues/113#issuecomment-152717121","issue_url":"https://api.github.com/repos/sindresorhus/ava/issues/113","id":152717121,"user":{"login":"twada","id":19881,"avatar_url":"https://avatars.githubusercontent.com/u/19881?v=3","gravatar_id":"","url":"https://api.github.com/users/twada","html_url":"https://github.com/twada","followers_url":"https://api.github.com/users/twada/followers","following_url":"https://api.github.com/users/twada/following{/other_user}","gists_url":"https://api.github.com/users/twada/gists{/gist_id}","starred_url":"https://api.github.com/users/twada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twada/subscriptions","organizations_url":"https://api.github.com/users/twada/orgs","repos_url":"https://api.github.com/users/twada/repos","events_url":"https://api.github.com/users/twada/events{/privacy}","received_events_url":"https://api.github.com/users/twada/received_events","type":"User","site_admin":false},"created_at":"2015-10-31T09:13:39Z","updated_at":"2015-10-31T09:13:39Z","body":"For now, please avoid using await expression __INSIDE__ assertions.\r\n\r\nDoesn't work:\r\n```js\r\ntest('foo', async t => {\r\n    t.plan(1);\r\n    t.ok(await foo() === false);\r\n});\r\n```\r\n\r\nWould work:\r\n```js\r\ntest('foo', async t => {\r\n    t.plan(1);\r\n    const result = await foo();\r\n    t.ok(result === false);\r\n});\r\n```\r\n\r\nSorry for inconvenience, I'll fix it ASAP."}}