import React from 'react';

import Link from './index';

const data = {};

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

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

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

  it('should render correctly with icon', () => {
    wrapper.setProps({ icon: 'email' });
    expect(wrapper).toMatchSnapshot();
  });
});
