Skip to content

Commit

Permalink
docs(valid-expect): call Promise.all in example correctly (#1083)
Browse files Browse the repository at this point in the history
  • Loading branch information
saikiran1043 authored Apr 19, 2022
1 parent 18dd3df commit a450d6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/rules/valid-expect.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ test('all the things', async () => {
await Promise.resolve(
expect(Promise.resolve('hello')).resolves.toEqual('hello'),
);
await Promise.all(
await Promise.all([
expect(Promise.resolve('hello')).resolves.toEqual('hello'),
expect(Promise.resolve('hi')).resolves.toEqual('hi'),
);
]);
});
```

0 comments on commit a450d6e

Please sign in to comment.