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 ec50666

Browse files
committed
test: Make sure to verify the button behavior when implementing the extra credit requirements
1 parent 99579ae commit ec50666

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/__tests__/01.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ test('clicking the button increments the count with useReducer', () => {
1212
const button = container.querySelector('button')
1313
userEvent.click(button)
1414
expect(button).toHaveTextContent('1')
15+
userEvent.click(button)
16+
expect(button).toHaveTextContent('2')
1517

1618
alfredTip(() => {
1719
expect(React.useReducer).toHaveBeenCalled()

0 commit comments

Comments
(0)

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