@@ -37,16 +37,12 @@ describe('Select', () => {
3737 attachTo : 'body' ,
3838 } ) ;
3939 await asyncExpect ( ( ) => {
40- wrapper
41- . findAll ( '.ant-select-selector' ) [ 0 ]
42- . element . dispatchEvent ( new MouseEvent ( 'mousedown' ) ) ;
40+ wrapper . findAll ( '.ant-select-selector' ) [ 0 ] . element . dispatchEvent ( new MouseEvent ( 'mousedown' ) ) ;
4341 } ) ;
4442
4543 await asyncExpect ( ( ) => {
4644 expect ( $$ ( '.ant-select-item-option' ) . length ) . toBe ( 0 ) ;
47- expect ( $$ ( '.ant-empty-description' ) [ 0 ] . innerHTML ) . toBe (
48- 'No Data' ,
49- ) ;
45+ expect ( $$ ( '.ant-empty-description' ) [ 0 ] . innerHTML ) . toBe ( 'No Data' ) ;
5046 } , 100 ) ;
5147 } ) ;
5248
@@ -60,9 +56,7 @@ describe('Select', () => {
6056 attachTo : 'body' ,
6157 } ) ;
6258 await asyncExpect ( ( ) => {
63- wrapper
64- . findAll ( '.ant-select-selector' ) [ 0 ]
65- . element . dispatchEvent ( new MouseEvent ( 'mousedown' ) ) ;
59+ wrapper . findAll ( '.ant-select-selector' ) [ 0 ] . element . dispatchEvent ( new MouseEvent ( 'mousedown' ) ) ;
6660 } ) ;
6761
6862 await asyncExpect ( ( ) => {
@@ -79,9 +73,7 @@ describe('Select', () => {
7973 attachTo : 'body' ,
8074 } ) ;
8175 await asyncExpect ( ( ) => {
82- wrapper
83- . findAll ( '.ant-select-selector' ) [ 0 ]
84- . element . dispatchEvent ( new MouseEvent ( 'mousedown' ) ) ;
76+ wrapper . findAll ( '.ant-select-selector' ) [ 0 ] . element . dispatchEvent ( new MouseEvent ( 'mousedown' ) ) ;
8577 } ) ;
8678
8779 await asyncExpect ( ( ) => {
@@ -98,9 +90,7 @@ describe('Select', () => {
9890 sync : false ,
9991 } ) ;
10092 await asyncExpect ( ( ) => {
101- wrapper
102- . findAll ( '.ant-select-selector' ) [ 0 ]
103- . element . dispatchEvent ( new MouseEvent ( 'mousedown' ) ) ;
93+ wrapper . findAll ( '.ant-select-selector' ) [ 0 ] . element . dispatchEvent ( new MouseEvent ( 'mousedown' ) ) ;
10494 } ) ;
10595
10696 await asyncExpect ( ( ) => {
@@ -135,11 +125,9 @@ describe('Select', () => {
135125 expect ( getStyle ( $$ ( '.ant-select-dropdown' ) [ 0 ] , 'display' ) ) . toBe ( 'block' ) ;
136126 } , 100 ) ;
137127 await asyncExpect ( ( ) => {
138- wrapper
139- . findAll ( '.ant-select-selector' ) [ 0 ]
140- . element . dispatchEvent ( new MouseEvent ( 'mousedown' ) ) ;
128+ wrapper . findAll ( '.ant-select-selector' ) [ 0 ] . element . dispatchEvent ( new MouseEvent ( 'mousedown' ) ) ;
141129 } ) ;
142- await asyncExpect ( ( ) => {
130+ await asyncExpect ( ( ) => {
143131 expect ( onDropdownVisibleChange ) . toHaveBeenLastCalledWith ( false ) ;
144132 } ) ;
145133 await asyncExpect ( ( ) => {
@@ -149,9 +137,7 @@ describe('Select', () => {
149137
150138 await asyncExpect ( ( ) => {
151139 expect ( getStyle ( $$ ( '.ant-select-dropdown' ) [ 0 ] , 'display' ) ) . toBe ( 'none' ) ;
152- wrapper
153- . findAll ( '.ant-select-selector' ) [ 0 ]
154- . element . dispatchEvent ( new MouseEvent ( 'mousedown' ) ) ;
140+ wrapper . findAll ( '.ant-select-selector' ) [ 0 ] . element . dispatchEvent ( new MouseEvent ( 'mousedown' ) ) ;
155141 expect ( onDropdownVisibleChange ) . toHaveBeenLastCalledWith ( true ) ;
156142 expect ( getStyle ( $$ ( '.ant-select-dropdown' ) [ 0 ] , 'display' ) ) . toBe ( 'none' ) ;
157143 } , 500 ) ;
0 commit comments