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', () => {
54
54
expect ( onSearch ) . toHaveBeenCalledWith ( '' , { source : 'blur' } ) ;
55
55
} ) ;
56
56
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
-
80
57
it ( 'click item and blur should trigger onBlur but not trigger onSearch' , ( ) => {
81
58
const onSearch = jest . fn ( ) ;
82
59
const onBlur = jest . fn ( ) ;
You can’t perform that action at this time.
0 commit comments