From 8a1edfe7cf13f738a48ad3ceae8ae812213cf175 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Fri, 11 Mar 2022 17:23:43 +0100 Subject: [PATCH] Fixed usage of old module in InfoTooltip test --- test/utils/InfoTooltip.test.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/utils/InfoTooltip.test.tsx b/test/utils/InfoTooltip.test.tsx index aacd574c..bce776a5 100644 --- a/test/utils/InfoTooltip.test.tsx +++ b/test/utils/InfoTooltip.test.tsx @@ -1,6 +1,6 @@ import { shallow } from 'enzyme'; import { UncontrolledTooltip } from 'reactstrap'; -import Popper from 'popper.js'; +import { Placement } from '@popperjs/core'; import { InfoTooltip } from '../../src/utils/InfoTooltip'; describe('', () => { @@ -28,10 +28,10 @@ describe('', () => { }); it.each([ - [ 'right' as Popper.Placement ], - [ 'left' as Popper.Placement ], - [ 'top' as Popper.Placement ], - [ 'bottom' as Popper.Placement ], + [ 'right' as Placement ], + [ 'left' as Placement ], + [ 'top' as Placement ], + [ 'bottom' as Placement ], ])('places tooltip where requested', (placement) => { const wrapper = shallow(); const tooltip = wrapper.find(UncontrolledTooltip);