create-personal-react-app
Version:
A thin wrapper around Facebook's create-react-app
32 lines (30 loc) • 614 B
JavaScript
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);
});
});