Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: remove extra code in examples
  • Loading branch information
renatoagds committed Jul 22, 2020
commit 47210646cbc4bcbf14d4af3a4062b08db497b8a2
2 changes: 0 additions & 2 deletions docs/rules/no-side-effects-wait-for.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ This will make your side-effect run multiple times.
Example of **incorrect** code for this rule:

```js
const foo = async () => {
await waitFor(() => {
fireEvent.keyDown(input, { key: 'ArrowDown' });
expect(b).toEqual('b');
Expand Down Expand Up @@ -39,7 +38,6 @@ const foo = async () => {
Examples of **correct** code for this rule:

```js
const foo = async () => {
fireEvent.keyDown(input, { key: 'ArrowDown' });
await waitFor(() => {
expect(b).toEqual('b');
Expand Down