Skip to content

Commit a450d6e

Browse files
authored
docs(valid-expect): call Promise.all in example correctly (#1083)
1 parent 18dd3df commit a450d6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: docs/rules/valid-expect.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ test('all the things', async () => {
136136
await Promise.resolve(
137137
expect(Promise.resolve('hello')).resolves.toEqual('hello'),
138138
);
139-
await Promise.all(
139+
await Promise.all([
140140
expect(Promise.resolve('hello')).resolves.toEqual('hello'),
141141
expect(Promise.resolve('hi')).resolves.toEqual('hi'),
142-
);
142+
]);
143143
});
144144
```

0 commit comments

Comments
 (0)