Skip to content

Commit

Permalink
one fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kaznak committed Feb 7, 2021
1 parent a2e5adc commit 2417167
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/pages/counter.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ describe('Counter', () => {
expect(screen.getByText('0', { selector: 'p' }))
})

it('Pressing `+` button increments the counter.', () => {
it('Pressing `+` button increments the counter.', async () => {
render(<Counter />)
expect(screen.getByText('0', { selector: 'p' }))
act(() => {
await act(async () => {
fireEvent.click(screen.getByText('+', { selector: 'button' }))
})
expect(screen.getByText('1', { selector: 'p' }))
Expand Down

0 comments on commit 2417167

Please sign in to comment.