Skip to content

Commit 712e32c

Browse files
committed
test: change test case
1 parent bb3ced4 commit 712e32c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/lib/rules/no-wait-for-side-effects.test.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -814,11 +814,13 @@ ruleTester.run(RULE_NAME, rule, {
814814
import { waitFor } from '${testingFramework}';
815815
import userEvent from '@testing-library/user-event'
816816
817-
await waitFor(() => {
818-
await userEvent.click(button);
819-
})
817+
it("some test", async () => {
818+
await waitFor(async () => {
819+
await fireEvent.click(screen.getByTestId("something"));
820+
});
821+
});
820822
`,
821-
errors: [{ line: 6, column: 11, messageId: 'noSideEffectsWaitFor' }],
823+
errors: [{ line: 7, column: 13, messageId: 'noSideEffectsWaitFor' }],
822824
},
823825
]),
824826
],

0 commit comments

Comments
 (0)