diff --git a/readme.md b/readme.md index 486db67e49..4706ff6676 100644 --- a/readme.md +++ b/readme.md @@ -272,18 +272,18 @@ AVA comes with builtin support for [async functions](https://tc39.github.io/ecma ```js test(async function (t) { const value = await promiseFn(); - - t.end(); + t.true(value); }); // async arrow function test(async t => { const value = await promiseFn(); - - t.end(); + t.true(value); }); ``` +*You don't have to manually call `t.end()` in async functions.* + ## API