Skip to content

Commit

Permalink
feat: update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
kiner-tang committed Jan 18, 2023
1 parent b846466 commit 6876b2a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ describe('rc-tooltip', () => {
</Tooltip>,
);
fireEvent.click(container.querySelector('.target'));
expect(container.querySelector('.rc-tooltip').classList).toContain('rc-tooltip-show-arrow');
expect(container.querySelector('.rc-tooltip-content').outerHTML).toBe(
'<div class="rc-tooltip-content"><div class="rc-tooltip-arrow"></div><div class="rc-tooltip-inner" role="tooltip"><strong class="x-content">Tooltip content</strong></div></div>',
);
Expand All @@ -192,7 +191,6 @@ describe('rc-tooltip', () => {
</Tooltip>,
);
fireEvent.click(container.querySelector('.target'));
expect(container.querySelector('.rc-tooltip').classList).toContain('rc-tooltip-show-arrow');
expect(container.querySelector('.rc-tooltip-content').outerHTML).toBe(
'<div class="rc-tooltip-content"><div class="rc-tooltip-arrow"></div><div class="rc-tooltip-inner" role="tooltip"><strong class="x-content">Tooltip content</strong></div></div>',
);
Expand Down

0 comments on commit 6876b2a

Please sign in to comment.