Skip to content

Commit 71b22e7

Browse files
committed
test: add test
1 parent 8656f4d commit 71b22e7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/lib/rules/no-node-access.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,16 @@ ruleTester.run(RULE_NAME, rule, {
181181
const buttonText = screen.getByText('submit');
182182
const userAlias = userEvent.setup();
183183
userAlias.click(buttonText);
184+
`,
185+
},
186+
{
187+
code: `
188+
import userEvent from '@testing-library/user-event';
189+
import { screen } from '${testingFramework}';
190+
test('...', () => {
191+
const buttonText = screen.getByText('submit');
192+
(() => { click: userEvent.click(buttonText); })();
193+
});
184194
`,
185195
},
186196
{

0 commit comments

Comments
 (0)