Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@doodle/components / controls / Tooltip / Tooltip.spec.js
Size: Mime:
import React from 'react';
import { shallow } from 'enzyme';
import InfoIcon from '../../visuals/Icon/svg/ic_info.svg';

import Tooltip from './Tooltip';

describe('Tooltip', () => {
  let component;
  let props;

  beforeEach(() => {
    props = {
      icon: { InfoIcon },
      message: 'This is a tooltip message. It is a nice one.',
      name: 'toolTipName',
    };
    component = shallow(<Tooltip {...props} />);
  });

  it('should match a snapshot', () => {
    expect(component.getElement()).toMatchSnapshot();
  });
});