mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-16 04:23:47 +00:00
Fixed usage of old module in InfoTooltip test
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { shallow } from 'enzyme';
|
import { shallow } from 'enzyme';
|
||||||
import { UncontrolledTooltip } from 'reactstrap';
|
import { UncontrolledTooltip } from 'reactstrap';
|
||||||
import Popper from 'popper.js';
|
import { Placement } from '@popperjs/core';
|
||||||
import { InfoTooltip } from '../../src/utils/InfoTooltip';
|
import { InfoTooltip } from '../../src/utils/InfoTooltip';
|
||||||
|
|
||||||
describe('<InfoTooltip />', () => {
|
describe('<InfoTooltip />', () => {
|
||||||
@@ -28,10 +28,10 @@ describe('<InfoTooltip />', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it.each([
|
it.each([
|
||||||
[ 'right' as Popper.Placement ],
|
[ 'right' as Placement ],
|
||||||
[ 'left' as Popper.Placement ],
|
[ 'left' as Placement ],
|
||||||
[ 'top' as Popper.Placement ],
|
[ 'top' as Placement ],
|
||||||
[ 'bottom' as Popper.Placement ],
|
[ 'bottom' as Placement ],
|
||||||
])('places tooltip where requested', (placement) => {
|
])('places tooltip where requested', (placement) => {
|
||||||
const wrapper = shallow(<InfoTooltip placement={placement} />);
|
const wrapper = shallow(<InfoTooltip placement={placement} />);
|
||||||
const tooltip = wrapper.find(UncontrolledTooltip);
|
const tooltip = wrapper.find(UncontrolledTooltip);
|
||||||
|
|||||||
Reference in New Issue
Block a user