import React from 'react';
import { shallow } from 'enzyme';
import {EmailPreviewV2} from '../index';

describe('<EmailPreviewV2 />', () => {
  it('<EmailPreviewV2 /> without the templateData', () => {
    const compoent = shallow(<EmailPreviewV2
      templateData={{_id: 'test'}}
      templateActions={{
        getTemplateDetails: jest.fn(),
        resetTemplateData: jest.fn(),
      }}
    />);
    expect(compoent).toMatchSnapshot();
  });
});
