Skip to content

Commit

Permalink
fix(slider.spec): fix some lint errors
Browse files Browse the repository at this point in the history
Closes #2610
  • Loading branch information
Aleksandyr committed Dec 12, 2018
1 parent cefcf70 commit 5e424a1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions projects/igniteui-angular/src/lib/slider/slider.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('IgxSlider', () => {
}));

describe('Base tests', () => {
configureTestSuite();
configureTestSuite();
let fixture: ComponentFixture<SliderInitializeTestComponent>;
let slider: IgxSliderComponent;

Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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)', () => {
Expand Down

0 comments on commit 5e424a1

Please sign in to comment.