Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3f98a1a

Browse files
docs: fix a wrong variable name in the readme (testing-library#108)
1 parent 2ecc290 commit 3f98a1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ describe('Counter', () => {
131131
await render(CounterComponent, { componentProperties: { counter: 5 } });
132132

133133
const incrementButton = screen.getByRole('button', { name: /increment/i });
134-
fireEvent.click(incrementControl);
134+
fireEvent.click(incrementButton);
135135

136136
expect(screen.getByText('Current Count: 6'));
137137
});

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /