import React from 'react';

import Dropdown from './index';

const data = {
  name: 'dropdown',
  options: [
    {
      name: 'Option 1',
      value: 'o1',
    },
    {
      name: 'Option 2',
      value: 'o2',
    },
  ],
};

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

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

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