state
held in the Redux store object with the getState()
method.
store.getState()
to retrieve the state
from the store
, and assign this to a new variable currentState
.
currentState
should exist and should be assigned the current state of the Redux store.
testString: getUserInput => assert(currentState === 5 && getUserInput('index').includes('store.getState()'), 'A variable currentState
should exist and should be assigned the current state of the Redux store.');
```