/**
 * Test {{ camelCase name }} sagas
 */

import { takeLatest } from 'redux-saga/effects'
import {{ camelCase name}}Saga, { defaultFunction } from '../saga'
import { {{ camelCase name}}Types } from '../reducer'

describe('{{ properCase name }} saga tests', () => {
  const generator = {{ camelCase name }}Saga();

  it('should start task to watch for DEFAULT_ACTION action', () => {
    expect(generator.next().value).toEqual(
      takeLatest({{ camelCase name }}Types.DEFAULT_ACTION, defaultFunction)
    );
  });
});
