Skip to content

Commit d2811df

Browse files
authored
Fix type error with jest tests (#51925)
1 parent 19c6b89 commit d2811df

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/legacy/ui/public/vis/vis_types/vislib_vis_legend/vislib_vis_legend.test.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
import React from 'react';
2121
import { mount, ReactWrapper } from 'enzyme';
22-
import { act } from '@testing-library/react-hooks';
2322

2423
import { I18nProvider } from '@kbn/i18n/react';
2524
import { EuiButtonGroup } from '@elastic/eui';
@@ -173,10 +172,8 @@ describe('VisLegend Component', () => {
173172
it('should call unHighlight handler when legend item is unhovered', () => {
174173
const first = getLegendItems(wrapper).first();
175174

176-
act(() => {
177-
first.simulate('mouseEnter');
178-
first.simulate('mouseLeave');
179-
});
175+
first.simulate('mouseEnter');
176+
first.simulate('mouseLeave');
180177

181178
expect(vislibVis.handler.unHighlight).toHaveBeenCalledTimes(1);
182179
});

0 commit comments

Comments
 (0)