From 5e424a15a594817dcdeefa03a3e67120f4acc1c9 Mon Sep 17 00:00:00 2001 From: Aleksandar Kamenov Date: Wed, 12 Dec 2018 15:42:33 +0200 Subject: [PATCH] fix(slider.spec): fix some lint errors Closes #2610 --- .../src/lib/slider/slider.component.spec.ts | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/projects/igniteui-angular/src/lib/slider/slider.component.spec.ts b/projects/igniteui-angular/src/lib/slider/slider.component.spec.ts index 36f53b1f2a7..5bbb5ca8616 100644 --- a/projects/igniteui-angular/src/lib/slider/slider.component.spec.ts +++ b/projects/igniteui-angular/src/lib/slider/slider.component.spec.ts @@ -24,7 +24,7 @@ describe('IgxSlider', () => { })); describe('Base tests', () => { - configureTestSuite(); + configureTestSuite(); let fixture: ComponentFixture; let slider: IgxSliderComponent; @@ -325,22 +325,22 @@ describe('IgxSlider', () => { const fix = TestBed.createComponent(SliderMinMaxComponent); fix.detectChanges(); - const slider = fix.componentInstance.slider; + const sliderRef = fix.componentInstance.slider; let expectedVal = 150; let expectedMax = 300; - expect(slider.value).toEqual(expectedVal); - expect(slider.maxValue).toEqual(expectedMax); + expect(sliderRef.value).toEqual(expectedVal); + expect(sliderRef.maxValue).toEqual(expectedMax); expectedVal = 250; expectedMax = 200; - slider.maxValue = expectedMax; - slider.value = expectedVal; + sliderRef.maxValue = expectedMax; + sliderRef.value = expectedVal; fix.detectChanges(); - expect(slider.value).not.toEqual(expectedVal); - expect(slider.value).toEqual(expectedMax); - expect(slider.maxValue).toEqual(expectedMax); + expect(sliderRef.value).not.toEqual(expectedVal); + expect(sliderRef.value).toEqual(expectedMax); + expect(sliderRef.maxValue).toEqual(expectedMax); }); function panRight(element, elementHeight, elementWidth, duration) { @@ -669,7 +669,7 @@ describe('IgxSlider', () => { expect(slider.lowerBound).toEqual(expectedMinVal); expect(slider.upperBound).toEqual(expectedMaxVal); - }) + }); describe('EditorProvider', () => { it('Should return correct edit element (single)', () => {