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