Skip to content

Commit a1e27d5

Browse files
committed
refactor(simple-combo): Adding minor changes to the test
1 parent 896965f commit a1e27d5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

projects/igniteui-angular/src/lib/simple-combo/simple-combo.component.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2135,21 +2135,21 @@ describe('IgxSimpleCombo', () => {
21352135
fixture = TestBed.createComponent(IgxComboRemoteDataInReactiveFormComponent);
21362136
fixture.detectChanges();
21372137
combo = fixture.componentInstance.reactiveCombo;
2138-
reactiveForm = fixture.componentInstance.reactiveForm;
2139-
reactiveControl = reactiveForm.form.controls['comboValue'];
2138+
const reactiveForm = fixture.componentInstance.reactiveForm;
2139+
const reactiveControl = reactiveForm.form.controls['comboValue'];
21402140
input = fixture.debugElement.query(By.css(`.${CSS_CLASS_COMBO_INPUTGROUP}`));
21412141
tick()
21422142
fixture.detectChanges();
21432143
expect(combo).toBeTruthy();
21442144

21452145
combo.select(0);
21462146
fixture.detectChanges();
2147-
expect(combo.value).toEqual(0);
2147+
expect(combo.value).toEqual([0]);
21482148
expect(input.nativeElement.value).toEqual('Product 0');
21492149

21502150
reactiveControl.setValue(3);
21512151
fixture.detectChanges();
2152-
expect(combo.value).toEqual(3);
2152+
expect(combo.value).toEqual([3]);
21532153
expect(input.nativeElement.value).toEqual('Product 3');
21542154

21552155
combo.open();
@@ -2158,7 +2158,7 @@ describe('IgxSimpleCombo', () => {
21582158
item1.triggerEventHandler('click', UIInteractions.getMouseEvent('click'));
21592159
fixture.detectChanges();
21602160

2161-
expect(combo.value).toEqual(5);
2161+
expect(combo.value).toEqual([5]);
21622162
expect(input.nativeElement.value).toEqual('Product 5');
21632163
}));
21642164
});

0 commit comments

Comments
 (0)