Skip to content

Commit b546c09

Browse files
authored
fix: typo (#6118)
1 parent 65f0182 commit b546c09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/components/tooltip/__tests__/tooltip.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { expect, it } from 'vitest';
33
import Tooltip from '@tdesign/components/tooltip';
44

55
const text = '这是一段内容';
6-
const tootipClass = '.t-popup';
6+
const tooltipClass = '.t-popup';
77

88
describe('Tooltip', () => {
99
it('', async () => {
@@ -16,7 +16,7 @@ describe('Tooltip', () => {
1616
await new Promise((resolve) => {
1717
timer = setTimeout(resolve, 250);
1818
});
19-
const tooltipContent = document.querySelector(tootipClass);
19+
const tooltipContent = document.querySelector(tooltipClass);
2020
expect(tooltipContent).toBeTruthy();
2121
clearTimeout(timer);
2222
});
@@ -31,7 +31,7 @@ describe('Tooltip', () => {
3131
await new Promise((resolve) => {
3232
timer = setTimeout(resolve, 250);
3333
});
34-
const arrow = document.querySelector(`${tootipClass} .t-popup__arrow`);
34+
const arrow = document.querySelector(`${tooltipClass} .t-popup__arrow`);
3535
expect(arrow).toBeTruthy();
3636
clearTimeout(timer);
3737
});

0 commit comments

Comments
 (0)