Skip to content

Commit

Permalink
test: update deprecated props
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieljablonski committed Feb 18, 2024
1 parent eefce82 commit c977bf8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/test/tooltip-attributes.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jest.useRealTimers()
// eslint-disable-next-line react/prop-types
const TooltipAttrs = ({ id, ...anchorParams }) => (
<>
<span id={id} {...anchorParams}>
<span data-tooltip-id={id} {...anchorParams}>
Lorem Ipsum
</span>
<Tooltip anchorId={id} />
<Tooltip id={id} />
</>
)

Expand Down
8 changes: 4 additions & 4 deletions src/test/tooltip-props.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jest.useRealTimers()
// eslint-disable-next-line react/prop-types
const TooltipProps = ({ id, ...tooltipParams }) => (
<>
<span id={id}>Lorem Ipsum</span>
<Tooltip anchorId={id} {...tooltipParams} />
<span data-tooltip-id={id}>Lorem Ipsum</span>
<Tooltip id={id} {...tooltipParams} />
</>
)

Expand Down Expand Up @@ -88,8 +88,8 @@ describe('tooltip props', () => {
const mockCallBack = jest.fn()
const { container } = render(
<>
<span id={id}>Lorem Ipsum</span>
<Tooltip anchorId={id} clickable>
<span data-tooltip-id={id}>Lorem Ipsum</span>
<Tooltip id={id} clickable>
<button onClick={mockCallBack}>button</button>
</Tooltip>
</>,
Expand Down

0 comments on commit c977bf8

Please sign in to comment.