Skip to content

Commit 5c210da

Browse files
committed
chore(query-builder): test function renamed
1 parent d645f8d commit 5c210da

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
@@ -2513,22 +2513,22 @@ describe('IgxQueryBuilder', () => {
25132513

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

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

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

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

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

0 commit comments

Comments
 (0)