Skip to content

Commit 5bae97c

Browse files
StoneCyphernovemberborn
authored andcommitted
Fix sample test in Flow recipe
1 parent 2762d3c commit 5bae97c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/recipes/flow.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ Create a `test.js` file.
3636
// @flow
3737
import test from 'ava';
3838

39-
const fn = async () => Promise.resolve('foo');
39+
const getFoo = () => 'foo';
4040

41-
test(async (t) => {
42-
t.is(await fn(), 'foo');
41+
test('check getFoo', t => {
42+
t.is(getFoo(), 'foo');
4343
});
4444
```
4545

0 commit comments

Comments
 (0)