File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change 11import { spyElementPrototypes } from '@rc-component/util/lib/test/domHook' ;
2- import { resetWarned } from '@rc-component/util/lib/warning' ;
32import React , { useEffect , useState } from 'react' ;
43import type { CascaderRef , BaseOptionType , CascaderProps } from '../src' ;
54import Cascader from '../src' ;
@@ -514,24 +513,6 @@ describe('Cascader.Basic', () => {
514513 expect ( wrapper . isOpen ( ) ) . toBeTruthy ( ) ;
515514 } ) ;
516515
517- it ( 'warning onPopupVisibleChange & popupClassName' , ( ) => {
518- resetWarned ( ) ;
519- const errorSpy = jest . spyOn ( console , 'error' ) . mockImplementation ( ( ) => { } ) ;
520- const onPopupVisibleChange = jest . fn ( ) ;
521- const wrapper = mount (
522- < Cascader
523- open
524- onPopupVisibleChange = { onPopupVisibleChange }
525- popupClassName = "legacy-cls"
526- placement = "topRight"
527- /> ,
528- ) ;
529-
530- expect ( wrapper . exists ( '.legacy-cls' ) ) . toBeTruthy ( ) ;
531-
532- errorSpy . mockRestore ( ) ;
533- } ) ;
534-
535516 it ( 'should support custom expand icon(text icon)' , ( ) => {
536517 const wrapper = mount (
537518 < Cascader
You can’t perform that action at this time.
0 commit comments