diff --git a/docs/recipes/typescript.md b/docs/recipes/typescript.md index f1822067a..408daba20 100644 --- a/docs/recipes/typescript.md +++ b/docs/recipes/typescript.md @@ -49,10 +49,10 @@ Create a `test.ts` file. ```ts import test from 'ava'; -const fn = async () => Promise.resolve('foo'); +const fn = () => 'foo'; -test(async t => { - t.is(await fn(), 'foo'); +test('fn() returns foo', t => { + t.is(fn(), 'foo'); }); ```