import React from 'react';

import LanguageSwitcher from './index';

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

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

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

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