From 05f925f9af258afb2dd2936eda14554a481f26b6 Mon Sep 17 00:00:00 2001 From: John Haugeland Date: Sun, 5 May 2019 06:42:37 -0700 Subject: [PATCH] Fix sample test in TypeScript recipe --- docs/recipes/typescript.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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'); }); ```