UNPKG

create-personal-react-app

Version:
32 lines (30 loc) 614 B
import reducer from './index'; describe('root reducer', () => { it('should return the initial state', () => { const expectedState = { router: { action: 'POP', location: { hash: '', pathname: '/', search: '', state: undefined, }, }, ui: { loading: { isVisible: false, }, snackbar: { isVisible: false, message: '', type: '', }, }, user: { users: [], }, }; expect(reducer(undefined, {})).toEqual(expectedState); }); });