Skip to content

Commit 864cec2

Browse files
committed
chore(*): returning root ids to what they should be
1 parent dd92df4 commit 864cec2

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

projects/igniteui-angular/src/lib/progressbar/circularbar.component.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ describe('IgxCircularProgressBarComponent', () => {
2020

2121
fixture = TestBed.createComponent(IgxCircularProgressBarComponent);
2222
progress = fixture.componentInstance;
23+
// For test fixture destroy
24+
progress.id = "root1";
2325
fixture.detectChanges();
2426
circularBar = fixture.debugElement.nativeElement;
2527
});

projects/igniteui-angular/src/lib/progressbar/linearbar.component.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ describe('IgxLinearProgressBarComponent', () => {
1616
beforeEach(() => {
1717
fixture = TestBed.createComponent(IgxLinearProgressBarComponent);
1818
progress = fixture.componentInstance;
19+
// For test fixture destroy
20+
progress.id = "root1";
1921
fixture.detectChanges();
2022
linearBar = fixture.debugElement.nativeElement;
2123
});
@@ -129,9 +131,6 @@ describe('IgxLinearProgressBarComponent', () => {
129131
});
130132

131133
it('should correctly apply the ID attribute', () => {
132-
expect(progress.id).toContain('igx-linear-bar-');
133-
expect(linearBar.id).toContain('igx-linear-bar-');
134-
135134
const customId = 'custom-linear-bar-id';
136135
progress.id = customId;
137136
fixture.detectChanges();

projects/igniteui-angular/src/lib/toast/toast.component.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ describe('IgxToast', () => {
3737
beforeEach(() => {
3838
fixture = TestBed.createComponent(IgxToastComponent);
3939
toast = fixture.componentInstance;
40+
// For test fixture destroy
41+
toast.id = "root1";
4042
fixture.detectChanges();
4143
});
4244

0 commit comments

Comments
 (0)