mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-10 18:27:25 +03:00
Fixed usage of old module in InfoTooltip test
This commit is contained in:
parent
81d405d7be
commit
8a1edfe7cf
1 changed files with 5 additions and 5 deletions
|
@ -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('<InfoTooltip />', () => {
|
||||
|
@ -28,10 +28,10 @@ describe('<InfoTooltip />', () => {
|
|||
});
|
||||
|
||||
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(<InfoTooltip placement={placement} />);
|
||||
const tooltip = wrapper.find(UncontrolledTooltip);
|
||||
|
|
Loading…
Reference in a new issue