@@ -190,6 +190,7 @@ describe('General igxDrag/igxDrop', () => {
190190
191191 spyOn ( firstDrag . ghostCreate , 'emit' ) ;
192192 spyOn ( firstDrag . ghostDestroy , 'emit' ) ;
193+ spyOn ( firstDrag . dragClick , 'emit' ) ;
193194 expect ( document . getElementsByClassName ( 'dragElem' ) . length ) . toEqual ( 3 ) ;
194195
195196 // Step 1.
@@ -199,6 +200,7 @@ describe('General igxDrag/igxDrop', () => {
199200
200201 expect ( firstDrag . ghostCreate . emit ) . not . toHaveBeenCalled ( ) ;
201202 expect ( firstDrag . ghostDestroy . emit ) . not . toHaveBeenCalled ( ) ;
203+ expect ( firstDrag . dragClick . emit ) . not . toHaveBeenCalled ( ) ;
202204
203205 // Step 2.
204206 UIInteractions . simulatePointerEvent ( 'pointermove' , firstElement , startingX + 10 , startingY + 10 ) ;
@@ -209,6 +211,7 @@ describe('General igxDrag/igxDrop', () => {
209211 expect ( document . getElementsByClassName ( 'dragElem' ) . length ) . toEqual ( 3 ) ;
210212 expect ( firstDrag . ghostCreate . emit ) . not . toHaveBeenCalled ( ) ;
211213 expect ( firstDrag . ghostDestroy . emit ) . not . toHaveBeenCalled ( ) ;
214+ expect ( firstDrag . dragClick . emit ) . not . toHaveBeenCalled ( ) ;
212215
213216 // Step 3.
214217 // We need to trigger the pointerup on the ghostElement because this is the element we move and is under the mouse
@@ -220,6 +223,7 @@ describe('General igxDrag/igxDrop', () => {
220223 expect ( document . getElementsByClassName ( 'dragElem' ) . length ) . toEqual ( 3 ) ;
221224 expect ( firstDrag . ghostCreate . emit ) . not . toHaveBeenCalled ( ) ;
222225 expect ( firstDrag . ghostDestroy . emit ) . not . toHaveBeenCalled ( ) ;
226+ expect ( firstDrag . dragClick . emit ) . toHaveBeenCalled ( ) ;
223227 } ) ) ;
224228
225229 it ( 'should position ghost at the same position relative to the mouse when drag started.' , ( async ( ) => {
@@ -454,6 +458,7 @@ describe('General igxDrag/igxDrop', () => {
454458 firstDrag . dragTolerance = 25 ;
455459
456460 spyOn ( firstDrag . dragStart , 'emit' ) ;
461+ spyOn ( firstDrag . dragClick , 'emit' ) ;
457462
458463 // Step 1.
459464 UIInteractions . simulatePointerEvent ( 'pointerdown' , firstElement , startingX , startingY ) ;
@@ -471,6 +476,7 @@ describe('General igxDrag/igxDrop', () => {
471476 expect ( firstElement . getBoundingClientRect ( ) . left ) . toEqual ( dragDirsRects [ 0 ] . left ) ;
472477 expect ( firstElement . getBoundingClientRect ( ) . top ) . toEqual ( dragDirsRects [ 0 ] . top ) ;
473478 expect ( firstDrag . dragStart . emit ) . not . toHaveBeenCalled ( ) ;
479+ expect ( firstDrag . dragClick . emit ) . not . toHaveBeenCalled ( ) ;
474480
475481 // Step 3.
476482 UIInteractions . simulatePointerEvent ( 'pointermove' , firstElement , startingX + 20 , startingY + 20 ) ;
@@ -481,6 +487,7 @@ describe('General igxDrag/igxDrop', () => {
481487 expect ( firstElement . getBoundingClientRect ( ) . left ) . toEqual ( dragDirsRects [ 0 ] . left ) ;
482488 expect ( firstElement . getBoundingClientRect ( ) . top ) . toEqual ( dragDirsRects [ 0 ] . top ) ;
483489 expect ( firstDrag . dragStart . emit ) . not . toHaveBeenCalled ( ) ;
490+ expect ( firstDrag . dragClick . emit ) . not . toHaveBeenCalled ( ) ;
484491
485492 // Step 4.
486493 UIInteractions . simulatePointerEvent ( 'pointerup' , firstElement , startingX + 20 , startingY + 20 ) ;
@@ -490,6 +497,7 @@ describe('General igxDrag/igxDrop', () => {
490497 expect ( firstElement . getBoundingClientRect ( ) . left ) . toEqual ( dragDirsRects [ 0 ] . left ) ;
491498 expect ( firstElement . getBoundingClientRect ( ) . top ) . toEqual ( dragDirsRects [ 0 ] . top ) ;
492499 expect ( firstDrag . dragStart . emit ) . not . toHaveBeenCalled ( ) ;
500+ expect ( firstDrag . dragClick . emit ) . toHaveBeenCalled ( ) ;
493501 } ) ) ;
494502
495503 it ( 'should correctly apply dragTolerance of 0 when it is set to 0 and ghost is disabled.' , ( async ( ) => {
0 commit comments