Skip to content

Commit

Permalink
Fix sample test in TypeScript 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 8a3f6ca commit 05f925f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/recipes/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
```

Expand Down

0 comments on commit 05f925f

Please sign in to comment.