import React from 'react';

import RadioButtons from './index';

const data = {
  items: [
    {
      name: 'name 1',
      value: 'value 1',
      label: 'label 1',
    },
    {
      name: 'name 1',
      value: 'value 1',
      label: 'label 1',
    },
  ],
};

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

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

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