Skip to content

Commit c94b759

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Update another test that was affected by a left over ghost element. Fix lint.
1 parent 7f77a4d commit c94b759

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

projects/igniteui-angular/src/lib/grids/grid/row-drag.directive.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ describe('Row Drag Tests #grid', () => {
451451

452452
const ghostText = document.getElementsByClassName(CSS_CLASS_GHOST_ROW)[0].textContent;
453453
expect(ghostText).toEqual(' Moving a row! ');
454-
const pointerUpEvent = UIInteractions.createPointerEvent('pointerup', dropPoint);
454+
pointerUpEvent = UIInteractions.createPointerEvent('pointerup', dropPoint);
455455
rowDragDirective.onPointerUp(pointerUpEvent);
456456
});
457457

@@ -484,7 +484,7 @@ describe('Row Drag Tests #grid', () => {
484484
const ghostText = document.getElementsByClassName(CSS_CLASS_GHOST_ROW)[0].textContent;
485485
expect(ghostText.trim()).toEqual('CUSTOM');
486486

487-
const pointerUpEvent = UIInteractions.createPointerEvent('pointerup', dropPoint);
487+
pointerUpEvent = UIInteractions.createPointerEvent('pointerup', dropPoint);
488488
rowDragDirective.onPointerUp(pointerUpEvent);
489489

490490
});
@@ -789,7 +789,7 @@ describe('Row Drag Tests #grid', () => {
789789

790790
const ghostElements = document.getElementsByClassName(CSS_CLASS_GHOST_ROW);
791791
const ghostElement = ghostElements[0];
792-
expect(ghostElements.length).toEqual(2);
792+
expect(ghostElements.length).toEqual(1);
793793
expect(ghostElement.classList.contains(CSS_CLASS_SELECTED_ROW)).toBeFalsy();
794794

795795
pointerMoveEvent = UIInteractions.createPointerEvent('pointermove', dropPoint);

0 commit comments

Comments
 (0)