text: import React from 'react';
  import { shallow } from 'enzyme';
  
  import Chip from '.';
  
  const renderComponent = (props) => shallow(<Chip {...props} />);
  
  describe('Chip component', () => {
    it('matches snapshot (default props)', () => {
      const component = renderComponent({
        label: 'foo',
      });
      expect(component).toMatchSnapshot();
    });
  
    it('matches snapshot (set all props)', () => {
      const component = renderComponent({
        label: 'foo',
        as: () => {},
        isActive: true,
        subtitle: 'bar',
        onClose: () => {},
        Icon: () => {},
        size: 'm',
        theme: 'blue',
      });
      expect(component).toMatchSnapshot();
    });
  });
  