Skip to content

Commit dce9df5

Browse files
committed
chore(*): fixing more tests
1 parent 5a22417 commit dce9df5

File tree

5 files changed

+17
-6
lines changed

5 files changed

+17
-6
lines changed

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

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

2121
fixture = TestBed.createComponent(IgxCircularProgressBarComponent);
2222
progress = fixture.componentInstance;
23-
// For test fixture destroy
24-
progress.id = "root1";
2523
fixture.detectChanges();
2624
circularBar = fixture.debugElement.nativeElement;
2725
});

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

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

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,14 @@ describe('Stepper service unit tests', () => {
928928
let steps: IgxStepComponent[] = [];
929929
let stepper: IgxStepperComponent;
930930

931+
beforeAll(() => {
932+
jasmine.getEnv().allowRespy(true);
933+
});
934+
935+
afterAll(() => {
936+
jasmine.getEnv().allowRespy(false);
937+
});
938+
931939
beforeEach(() => {
932940
mockElement = {
933941
style: { visibility: '', cursor: '', transitionDuration: '' },

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

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

projects/igniteui-angular/src/lib/tree/tree.spec.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ describe('IgxTree #treeView', () => {
2424
let mockNodes: QueryList<IgxTreeNodeComponent<any>>;
2525
let mockNodesArray: IgxTreeNodeComponent<any>[] = [];
2626
let tree: IgxTreeComponent = null;
27+
28+
beforeAll(() => {
29+
jasmine.getEnv().allowRespy(true);
30+
});
31+
32+
afterAll(() => {
33+
jasmine.getEnv().allowRespy(false);
34+
});
35+
2736
beforeEach(() => {
2837
mockNodesArray = [];
2938
mockNavService = jasmine.createSpyObj('navService',

0 commit comments

Comments
 (0)