diff --git a/docs/recipes/flow.md b/docs/recipes/flow.md index 29efaf046..41d74bbe5 100644 --- a/docs/recipes/flow.md +++ b/docs/recipes/flow.md @@ -36,10 +36,10 @@ Create a `test.js` file. // @flow import test from 'ava'; -const fn = async () => Promise.resolve('foo'); +const getFoo = () => 'foo'; -test(async (t) => { - t.is(await fn(), 'foo'); +test('check getFoo', t => { + t.is(getFoo(), 'foo'); }); ```