Repository URL to install this package:
|
Version:
8.0.0 ▾
|
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();
});
});