Skip to content

Commit c977bf8

Browse files
test: update deprecated props
1 parent eefce82 commit c977bf8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/test/tooltip-attributes.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jest.useRealTimers()
99
// eslint-disable-next-line react/prop-types
1010
const TooltipAttrs = ({ id, ...anchorParams }) => (
1111
<>
12-
<span id={id} {...anchorParams}>
12+
<span data-tooltip-id={id} {...anchorParams}>
1313
Lorem Ipsum
1414
</span>
15-
<Tooltip anchorId={id} />
15+
<Tooltip id={id} />
1616
</>
1717
)
1818

src/test/tooltip-props.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jest.useRealTimers()
99
// eslint-disable-next-line react/prop-types
1010
const TooltipProps = ({ id, ...tooltipParams }) => (
1111
<>
12-
<span id={id}>Lorem Ipsum</span>
13-
<Tooltip anchorId={id} {...tooltipParams} />
12+
<span data-tooltip-id={id}>Lorem Ipsum</span>
13+
<Tooltip id={id} {...tooltipParams} />
1414
</>
1515
)
1616

@@ -88,8 +88,8 @@ describe('tooltip props', () => {
8888
const mockCallBack = jest.fn()
8989
const { container } = render(
9090
<>
91-
<span id={id}>Lorem Ipsum</span>
92-
<Tooltip anchorId={id} clickable>
91+
<span data-tooltip-id={id}>Lorem Ipsum</span>
92+
<Tooltip id={id} clickable>
9393
<button onClick={mockCallBack}>button</button>
9494
</Tooltip>
9595
</>,

0 commit comments

Comments
 (0)