create-personal-react-app
Version:
A thin wrapper around Facebook's create-react-app
18 lines (16 loc) • 359 B
JavaScript
import reducer from './index';
describe('ui reducer', () => {
it('should return the initial state', () => {
const expectedState = {
loading: {
isVisible: false,
},
snackbar: {
isVisible: false,
message: '',
type: '',
},
};
expect(reducer(undefined, {})).toEqual(expectedState);
});
});