Skip to content

Commit b6780ab

Browse files
committed
chore(query-builder): test function renamed
1 parent bf479bc commit b6780ab

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

projects/igniteui-angular/src/lib/query-builder/query-builder-functions.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ export class QueryBuilderFunctions {
935935
return [dropGhost, prevElement, nextElement, newChipContents];
936936
}
937937

938-
public static dragGhostWithMouse(fix: ComponentFixture<any>, draggedChip: any, X: number, Y: number, moveDown: boolean) {
938+
public static verifyGhostPositionOnMouseDrag(fix: ComponentFixture<any>, draggedChip: any, X: number, Y: number, moveDown: boolean) {
939939
const ghostPositionVisits: boolean[] = [false, false, false, false, false, false, false, false];
940940
const draggedChipCenter = QueryBuilderFunctions.getElementCenter(draggedChip.chipArea.nativeElement);
941941
const dragDir = draggedChip.dragDirective;

projects/igniteui-angular/src/lib/query-builder/query-builder.component.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2463,22 +2463,22 @@ describe('IgxQueryBuilder', () => {
24632463

24642464
it('Should render drop ghost properly when mouse dragged down on the left.', fakeAsync(() => {
24652465
const draggedChip = chipComponents[1].componentInstance;
2466-
QueryBuilderFunctions.dragGhostWithMouse(fix, draggedChip, 100, 75, true);
2466+
QueryBuilderFunctions.verifyGhostPositionOnMouseDrag(fix, draggedChip, 100, 75, true);
24672467
}));
24682468

24692469
it('Should render drop ghost properly when mouse dragged up on the left.', fakeAsync(() => {
24702470
const draggedChip = chipComponents[1].componentInstance;
2471-
QueryBuilderFunctions.dragGhostWithMouse(fix, draggedChip, 100, 75 + 350, false);
2471+
QueryBuilderFunctions.verifyGhostPositionOnMouseDrag(fix, draggedChip, 100, 75 + 350, false);
24722472
}));
24732473

24742474
it('Should render drop ghost properly when mouse dragged down on the right.', fakeAsync(() => {
24752475
const draggedChip = chipComponents[1].componentInstance;
2476-
QueryBuilderFunctions.dragGhostWithMouse(fix, draggedChip, 500, 75, true);
2476+
QueryBuilderFunctions.verifyGhostPositionOnMouseDrag(fix, draggedChip, 500, 75, true);
24772477
}));
24782478

24792479
it('Should render drop ghost properly when mouse dragged up on the right.', fakeAsync(() => {
24802480
const draggedChip = chipComponents[1].componentInstance;
2481-
QueryBuilderFunctions.dragGhostWithMouse(fix, draggedChip, 500, 75 + 350, false);
2481+
QueryBuilderFunctions.verifyGhostPositionOnMouseDrag(fix, draggedChip, 500, 75 + 350, false);
24822482
}));
24832483

24842484
it('Should position drop ghost below the target condition on dragging down.', () => {

0 commit comments

Comments
 (0)