File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/components/tooltip/__tests__ Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { expect, it } from 'vitest';
33import Tooltip from '@tdesign/components/tooltip' ;
44
55const text = '这是一段内容' ;
6- const tootipClass = '.t-popup' ;
6+ const tooltipClass = '.t-popup' ;
77
88describe ( '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 } ) ;
You can’t perform that action at this time.
0 commit comments