We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2762d3c commit 5bae97cCopy full SHA for 5bae97c
docs/recipes/flow.md
@@ -36,10 +36,10 @@ Create a `test.js` file.
36
// @flow
37
import test from 'ava';
38
39
-const fn = async () => Promise.resolve('foo');
+const getFoo = () => 'foo';
40
41
-test(async (t) => {
42
- t.is(await fn(), 'foo');
+test('check getFoo', t => {
+ t.is(getFoo(), 'foo');
43
});
44
```
45
0 commit comments