Skip to content

Commit 3e62356

Browse files
author
Konstantin Dinev
committed
chore(*): fixing lint errors
1 parent 95d7c92 commit 3e62356

3 files changed

Lines changed: 4 additions & 8 deletions

File tree

projects/igniteui-angular-extras/src/lib/context-menu/context-menu.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ describe('IgxContextMenuComponent', () => {
281281
it('should reopen tabsMenu when closing a chart dialog and dialogId exists', () => {
282282
// Simulate having an open dialog
283283
(component as any)._dialogId = 'dialog-id';
284-
const mockInstance = new (class { constructor() {} })();
284+
const mockInstance = new (class { })();
285285
Object.setPrototypeOf(mockInstance, { constructor: { name: 'IgxChartMenuComponent' } });
286286

287287
// The closing event checks instanceof IgxChartMenuComponent — we mock at the overlay level

projects/igniteui-angular-extras/src/lib/directives/chart-integration/chart-integration.directive.spec.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,6 @@ describe('IgxChartIntegrationDirective', () => {
200200

201201
describe('disableCharts and chartData interaction', () => {
202202
it('should not include disabled chart types in emitted chartsForCreation', () => {
203-
let emittedArgs: IDeterminedChartTypesArgs;
204-
directive.chartTypesDetermined.subscribe((args) => emittedArgs = args);
205-
206203
directive.disableCharts([CHART_TYPE.Pie]);
207204

208205
// chartsAvailability is updated but chartsForCreation only populated when chartData is set

projects/igniteui-angular/time-picker/src/time-picker/time-picker.pipes.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@ export class TimeItemPipe implements PipeTransform {
2929

3030

3131
public transform(_collection: any[], timePart: string, selectedDate: Date, min: Date, max: Date) {
32-
let list;
33-
let part;
32+
let list, part, hours, selectedAmPm;
3433
switch (timePart) {
3534
case 'hour':
3635
list = this.generateHours(min, max);
37-
const hours = this.timePicker.isTwelveHourFormat ? this.toTwelveHourFormat(selectedDate.getHours())
36+
hours = this.timePicker.isTwelveHourFormat ? this.toTwelveHourFormat(selectedDate.getHours())
3837
: selectedDate.getHours();
3938
list = this.scrollListItem(hours, list);
4039
part = DatePart.Hours;
@@ -50,7 +49,7 @@ export class TimeItemPipe implements PipeTransform {
5049
part = DatePart.Seconds;
5150
break;
5251
case 'ampm':
53-
const selectedAmPm = this.timePicker.getPartValue(selectedDate, 'ampm');
52+
selectedAmPm = this.timePicker.getPartValue(selectedDate, 'ampm');
5453
list = this.generateAmPm(min, max, selectedAmPm);
5554
list = this.scrollListItem(selectedAmPm, list);
5655
part = DatePart.AmPm;

0 commit comments

Comments
 (0)