import { {{ camelCase name }}Reducer, {{ camelCase name }}Types, initialState } from '../reducer';

describe('{{ properCase name }} reducer tests', () => {
  it('should return the initial state by default', () => {
    expect({{ camelCase name }}Reducer(undefined, {})).toEqual(initialState);
  });

  it('should return the updated state when an action of type DEFAULT is dispatched', () => {
    const expectedResult = {...initialState, somePayLoad: 'Mohammed Ali Chherawalla'};
    expect(
      {{ camelCase name }}Reducer(initialState, {
        type: {{ camelCase name}}Types.DEFAULT_ACTION,
        somePayLoad: 'Mohammed Ali Chherawalla'
      })
    ).toEqual(expectedResult);
  });
});
