import React from 'react';

import PackageListTabs from './index';

const data = {
  title: 'PackageListTabs',
  itemsTabList: [
    {
      name: 'name',
      slug: 'slug',
    },
    {
      name: 'name',
      slug: 'slug',
    },
  ],
  items: [
    {
      id: 1,
    },
    {
      id: 2,
    },
  ],
};

describe('PackageList', () => {
  const defaultElement = <PackageListTabs {...data} />;
  let wrapper;

  beforeEach(() => {
    wrapper = shallow(defaultElement);
  });

  it('should render correctly', () => {
    expect(wrapper).toMatchSnapshot();
  });
});
