@@ -339,7 +339,7 @@ describe('rc-tooltip', () => {
339339 const tooltipBodyElement = container . querySelector ( '.rc-tooltip-body' ) as HTMLElement ;
340340 const tooltipArrowElement = container . querySelector ( '.rc-tooltip-arrow' ) as HTMLElement ;
341341
342- // 验证 classNames
342+ // Verify classNames
343343 expect ( tooltipElement ) . toHaveClass ( 'custom-root' ) ;
344344 expect ( tooltipBodyElement ) . toHaveClass ( 'custom-body' ) ;
345345 expect ( tooltipArrowElement ) . toHaveClass ( 'custom-arrow' ) ;
@@ -367,7 +367,7 @@ describe('rc-tooltip', () => {
367367 const tooltipBodyElement = container . querySelector ( '.rc-tooltip-body' ) as HTMLElement ;
368368 const tooltipArrowElement = container . querySelector ( '.rc-tooltip-arrow' ) as HTMLElement ;
369369
370- // 验证 styles
370+ // Verify styles
371371 expect ( tooltipElement . style . backgroundColor ) . toBe ( 'blue' ) ;
372372 expect ( tooltipElement . style . zIndex ) . toBe ( '1000' ) ;
373373 expect ( tooltipBodyElement . style . color ) . toBe ( 'red' ) ;
@@ -404,7 +404,7 @@ describe('rc-tooltip', () => {
404404 const tooltipBodyElement = container . querySelector ( '.rc-tooltip-body' ) as HTMLElement ;
405405 const tooltipArrowElement = container . querySelector ( '.rc-tooltip-arrow' ) as HTMLElement ;
406406
407- // 验证 classNames 和 styles 同时生效
407+ // Verify that classNames and styles work simultaneously
408408 expect ( tooltipElement ) . toHaveClass ( 'custom-root' ) ;
409409 expect ( tooltipElement . style . backgroundColor ) . toBe ( 'blue' ) ;
410410 expect ( tooltipBodyElement ) . toHaveClass ( 'custom-body' ) ;
@@ -438,11 +438,11 @@ describe('rc-tooltip', () => {
438438 const tooltipBodyElement = container . querySelector ( '.rc-tooltip-body' ) as HTMLElement ;
439439 const tooltipArrowElement = container . querySelector ( '.rc-tooltip-arrow' ) as HTMLElement ;
440440
441- // 验证部分配置生效
441+ // Verify partial configuration takes effect
442442 expect ( tooltipElement . style . backgroundColor ) . toBe ( 'blue' ) ;
443443 expect ( tooltipBodyElement ) . toHaveClass ( 'custom-body' ) ;
444444
445- // 验证未配置的不会有自定义类名或样式
445+ // Verify that unconfigured elements don't have custom class names or styles
446446 expect ( tooltipElement ) . not . toHaveClass ( 'custom-root' ) ;
447447 expect ( tooltipArrowElement ) . not . toHaveClass ( 'custom-arrow' ) ;
448448 } ) ;
@@ -476,10 +476,10 @@ describe('rc-tooltip', () => {
476476 const tooltipBodyElement = container . querySelector ( '.rc-tooltip-body' ) as HTMLElement ;
477477 const tooltipArrowElement = container . querySelector ( '.rc-tooltip-arrow' ) ;
478478
479- // 验证没有箭头时
479+ // Verify when arrow is not shown
480480 expect ( tooltipArrowElement ) . toBeFalsy ( ) ;
481481
482- // 其他样式仍然生效
482+ // Other styles still take effect
483483 expect ( tooltipElement ) . toHaveClass ( 'custom-root' ) ;
484484 expect ( tooltipElement . style . backgroundColor ) . toBe ( 'blue' ) ;
485485 expect ( tooltipBodyElement ) . toHaveClass ( 'custom-body' ) ;
@@ -522,7 +522,7 @@ describe('rc-tooltip', () => {
522522 const btn = container . querySelector ( 'button' ) ;
523523 expect ( btn ) . toHaveClass ( 'custom-btn' ) ;
524524
525- // 触发原始事件处理器
525+ // Trigger original event handler
526526 fireEvent . mouseEnter ( btn ) ;
527527 expect ( onMouseEnter ) . toHaveBeenCalled ( ) ;
528528 } ) ;
0 commit comments