Skip to content

Commit

Permalink
Fix sample test in Flow recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneCypher authored and novemberborn committed May 5, 2019
1 parent 2762d3c commit 5bae97c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/recipes/flow.md
Expand Up @@ -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');
});
```

Expand Down

0 comments on commit 5bae97c

Please sign in to comment.