<reponame>osehra-ocp/c2s-sof-ui
import React from 'react';
import { configure, shallow } from 'enzyme';
import Adapter from 'enzyme-adapter-react-15';
import 'mock-local-storage';

import { GoBackButton } from '../index';

configure({ adapter: new Adapter() });

describe('<GoBackButton />', () => {
  describe('snapshot tests', () => {
    it('should match snapshot', () => {
      // Arrange
      const label = 'goBackButton';
      const disabled = false;
      const props = {
        disabled,
      };

      // Act
      const renderedComponent = shallow(<GoBackButton {...props} >{label}</GoBackButton>);

      // Assert
      expect(renderedComponent).toMatchSnapshot();
    });
  });
});
