import React from 'react';

import DropdownList from './index';

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

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

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

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