File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -54,29 +54,6 @@ describe('Select.Blur', () => {
5454 expect ( onSearch ) . toHaveBeenCalledWith ( '' , { source : 'blur' } ) ;
5555 } ) ;
5656
57- it ( 'mode with multiple, onBlur source is blur' , ( ) => {
58- const onSearch = jest . fn ( ) ;
59- const { container } = render (
60- < BaseSelect
61- prefixCls = "rc-select"
62- mode = "multiple"
63- id = "test"
64- displayValues = { [ ] }
65- onDisplayValuesChange = { ( ) => { } }
66- searchValue = "1"
67- showSearch
68- onSearch = { onSearch }
69- OptionList = { OptionList }
70- emptyOptions
71- /> ,
72- ) ;
73- expect ( container . querySelector ( 'div.rc-select' ) ) . toBeTruthy ( ) ;
74- fireEvent . change ( container . querySelector ( 'input' ) , { target : { value : '2' } } ) ;
75- expect ( onSearch ) . toHaveBeenCalledWith ( '2' , { source : 'typing' } ) ;
76- fireEvent . blur ( container . querySelector ( 'div.rc-select' ) ) ;
77- expect ( onSearch ) . toHaveBeenCalledWith ( '' , { source : 'blur' } ) ;
78- } ) ;
79-
8057 it ( 'click item and blur should trigger onBlur but not trigger onSearch' , ( ) => {
8158 const onSearch = jest . fn ( ) ;
8259 const onBlur = jest . fn ( ) ;
You can’t perform that action at this time.
0 commit comments