Skip to content

Commit

Permalink
docs - calling t.end() in async functions is moot
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Oct 4, 2015
1 parent 7240a02 commit 2cb0ae7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2cb0ae7

Please sign in to comment.