remove outdated test case

This commit is contained in:
afc163 2018-11-07 17:49:03 +08:00
parent f8e074812c
commit b7a1b7b7be

View File

@ -121,21 +121,6 @@ describe('Tooltip', () => {
expect(wrapper2.find('span').first().getDOMNode().style.display).toBe('block');
});
it('should not wrap span when trigger is not hover', () => {
const wrapper = mount(
<Tooltip
title="xxxxx"
trigger="click"
mouseEnterDelay={0}
mouseLeaveDelay={0}
>
<button type="button" disabled>Hello world!</button>
</Tooltip>
);
expect(wrapper.find('span')).toHaveLength(0);
});
it('should works for arrowPointAtCenter', () => {
const arrowWidth = 5;
const horizontalArrowShift = 16;