Skip to content

Commit 550155f

Browse files
docs(prefer-wait-for): PR small fixes
Co-Authored-By: Tim Deschryver <[email protected]>
1 parent fe39525 commit 550155f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/rules/prefer-wait-for.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
This rule aims to use `waitFor` async util rather than previous deprecated ones.
88

9-
Deprecated wait async utils are:
9+
Deprecated `wait` async utils are:
1010

1111
- `wait`
1212
- `waitForElement`
1313
- `waitForDomChange`
1414

15-
> This rule will auto fix deprecated async utils for you, including necessary empty callback for `waitFor`. This means `wait();` will be replaced with `waitFor(() => {});`
15+
> This rule will auto fix deprecated async utils for you, including the necessary empty callback for `waitFor`. This means `wait();` will be replaced with `waitFor(() => {});`
1616
1717
Examples of **incorrect** code for this rule:
1818

@@ -23,7 +23,7 @@ const foo = async () => {
2323
await waitForElement(() => {});
2424
await waitForDomChange();
2525
await waitForDomChange(mutationObserverOptions);
26-
await waitForDomChange({ options: true });
26+
await waitForDomChange({ timeout: 100});
2727
};
2828
```
2929

0 commit comments

Comments
 (0)