Skip to content

Commit 40f6848

Browse files
committed
chore(*): resolving some left over consts
1 parent 2b04b7a commit 40f6848

2 files changed

Lines changed: 2 additions & 11 deletions

File tree

projects/igniteui-angular/calendar/src/calendar/month-picker/month-picker.component.spec.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ describe('IgxMonthPicker', () => {
592592
expect(monthPicker.viewDate.getFullYear()).toBe(initialYear - 1);
593593
});
594594

595-
it('should navigate forward by 15 years via Shift+PageDown in default (year) view', () => {
595+
it('should navigate forward one year via PageDown in default (year) view', () => {
596596
const fixture = TestBed.createComponent(IgxMonthPickerSampleComponent);
597597
fixture.detectChanges();
598598
const monthPicker = fixture.componentInstance.monthPicker;
@@ -601,10 +601,9 @@ describe('IgxMonthPicker', () => {
601601
fixture.detectChanges();
602602

603603
const initialYear = monthPicker.viewDate.getFullYear();
604-
UIInteractions.triggerKeyDownEvtUponElem('PageDown', document.activeElement, true, false, true);
604+
UIInteractions.triggerKeyDownEvtUponElem('PageDown', document.activeElement);
605605
fixture.detectChanges();
606606

607-
// Shift+PageDown in year view increments by 1 year (delta=1) using viewDate shift
608607
expect(monthPicker.viewDate.getFullYear()).toBe(initialYear + 1);
609608
});
610609

@@ -650,7 +649,6 @@ describe('IgxMonthPicker', () => {
650649
it('should navigate to January via Home key in default (year) view', () => {
651650
const fixture = TestBed.createComponent(IgxMonthPickerSampleComponent);
652651
fixture.detectChanges();
653-
const monthPicker = fixture.componentInstance.monthPicker;
654652
const wrapper = fixture.debugElement.query(By.css('.igx-calendar__wrapper'));
655653
wrapper.nativeElement.focus();
656654
fixture.detectChanges();
@@ -666,7 +664,6 @@ describe('IgxMonthPicker', () => {
666664
it('should navigate to December via End key in default (year) view', () => {
667665
const fixture = TestBed.createComponent(IgxMonthPickerSampleComponent);
668666
fixture.detectChanges();
669-
const monthPicker = fixture.componentInstance.monthPicker;
670667
const wrapper = fixture.debugElement.query(By.css('.igx-calendar__wrapper'));
671668
wrapper.nativeElement.focus();
672669
fixture.detectChanges();

projects/igniteui-angular/grids/pivot-grid/src/pivot-grid-keyboard-nav.spec.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,6 @@ describe('IgxPivotGrid - Keyboard navigation #pivotGrid', () => {
410410
let fixture: ComponentFixture<IgxPivotGridMultipleRowComponent>;
411411
let pivotGrid: IgxPivotGridComponent;
412412
let pivotNav: IgxPivotGridNavigationService;
413-
let headerRow: DebugElement;
414413

415414
beforeEach(waitForAsync(() => {
416415
TestBed.configureTestingModule({
@@ -430,7 +429,6 @@ describe('IgxPivotGrid - Keyboard navigation #pivotGrid', () => {
430429
pivotGrid = fixture.componentInstance.pivotGrid;
431430
pivotNav = pivotGrid.navigation as IgxPivotGridNavigationService;
432431
await fixture.whenStable();
433-
headerRow = fixture.debugElement.query(By.directive(IgxPivotHeaderRowComponent));
434432

435433
// Enable row headers so ArrowLeft on column 0 activates row dimension header navigation
436434
pivotGrid.pivotUI = { ...pivotGrid.pivotUI, showRowHeaders: true };
@@ -543,10 +541,6 @@ describe('IgxPivotGrid - Keyboard navigation #pivotGrid', () => {
543541
it('should sort dimension when pressing ctrl+ArrowDown with row=-1 in row dimension header nav', () => {
544542
activateRowDimensionHeaderNav();
545543

546-
const col = pivotNav.activeNode.column;
547-
const dim = pivotGrid.visibleRowDimensions[col];
548-
const initialSortDirection = dim.sortDirection;
549-
550544
spyOn(pivotGrid, 'sortDimension').and.callThrough();
551545

552546
// ctrl+ArrowDown at row=-1 → sortDimension is called

0 commit comments

Comments
 (0)