Skip to content

Commit 84afd3f

Browse files
committed
Use the render function isntead of renderWithRedux as used to
1 parent 8e70c0c commit 84afd3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/example-react-redux.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,13 @@ import { initialState, reducer } from './reducer.js'
103103
import Counter from './counter.js'
104104
105105
test('can render with redux with defaults', () => {
106-
renderWithRedux(<Counter />)
106+
render(<Counter />)
107107
fireEvent.click(screen.getByText('+'))
108108
expect(screen.getByTestId('count-value')).toHaveTextContent('1')
109109
})
110110
111111
test('can render with redux with custom initial state', () => {
112-
renderWithRedux(<Counter />, {
112+
render(<Counter />, {
113113
initialState: { count: 3 },
114114
})
115115
fireEvent.click(screen.getByText('-'))
@@ -119,7 +119,7 @@ test('can render with redux with custom initial state', () => {
119119
test('can render with redux with custom store', () => {
120120
// this is a silly store that can never be changed
121121
const store = createStore(() => ({ count: 1000 }))
122-
renderWithRedux(<Counter />, {
122+
render(<Counter />, {
123123
store,
124124
})
125125
fireEvent.click(screen.getByText('+'))

0 commit comments

Comments
 (0)