TSK-1838: automatic linting fixes introduced from dependency upgrades
This commit is contained in:
parent
541985b007
commit
6fb9dcf1c7
|
|
@ -104,8 +104,7 @@ describe('ClassificationDetailsComponent', () => {
|
||||||
let store: Store;
|
let store: Store;
|
||||||
let actions$: Observable<any>;
|
let actions$: Observable<any>;
|
||||||
|
|
||||||
beforeEach(
|
beforeEach(waitForAsync(() => {
|
||||||
waitForAsync(() => {
|
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
imports: [
|
imports: [
|
||||||
NgxsModule.forRoot([ClassificationState, EngineConfigurationState]),
|
NgxsModule.forRoot([ClassificationState, EngineConfigurationState]),
|
||||||
|
|
@ -145,8 +144,7 @@ describe('ClassificationDetailsComponent', () => {
|
||||||
engineConfiguration: engineConfigurationMock
|
engineConfiguration: engineConfigurationMock
|
||||||
});
|
});
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
})
|
}));
|
||||||
);
|
|
||||||
|
|
||||||
it('should create component', () => {
|
it('should create component', () => {
|
||||||
expect(component).toBeTruthy();
|
expect(component).toBeTruthy();
|
||||||
|
|
|
||||||
|
|
@ -43,8 +43,7 @@ xdescribe('ImportExportComponent', () => {
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
beforeEach(
|
beforeEach(waitForAsync(() => {
|
||||||
waitForAsync(() => {
|
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
imports: [],
|
imports: [],
|
||||||
declarations: [ImportExportComponent],
|
declarations: [ImportExportComponent],
|
||||||
|
|
@ -68,8 +67,7 @@ xdescribe('ImportExportComponent', () => {
|
||||||
app = fixture.debugElement.componentInstance;
|
app = fixture.debugElement.componentInstance;
|
||||||
app.currentSelection = TaskanaType.WORKBASKETS;
|
app.currentSelection = TaskanaType.WORKBASKETS;
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
})
|
}));
|
||||||
);
|
|
||||||
|
|
||||||
it('should create component', () => {
|
it('should create component', () => {
|
||||||
expect(app).toBeTruthy();
|
expect(app).toBeTruthy();
|
||||||
|
|
|
||||||
|
|
@ -73,8 +73,7 @@ describe('WorkbasketDistributionTargetsListComponent', () => {
|
||||||
setRequestInProgress: jest.fn().mockReturnValue(of(null))
|
setRequestInProgress: jest.fn().mockReturnValue(of(null))
|
||||||
};
|
};
|
||||||
|
|
||||||
beforeEach(
|
beforeEach(waitForAsync(() => {
|
||||||
waitForAsync(() => {
|
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
imports: [
|
imports: [
|
||||||
MatIconModule,
|
MatIconModule,
|
||||||
|
|
@ -111,8 +110,7 @@ describe('WorkbasketDistributionTargetsListComponent', () => {
|
||||||
engineConfiguration: engineConfigurationMock,
|
engineConfiguration: engineConfigurationMock,
|
||||||
workbasket: workbasketReadStateMock
|
workbasket: workbasketReadStateMock
|
||||||
});
|
});
|
||||||
})
|
}));
|
||||||
);
|
|
||||||
|
|
||||||
it('should create component', () => {
|
it('should create component', () => {
|
||||||
expect(component).toBeTruthy();
|
expect(component).toBeTruthy();
|
||||||
|
|
|
||||||
|
|
@ -58,8 +58,7 @@ describe('WorkbasketDistributionTargetsComponent', () => {
|
||||||
let store: Store;
|
let store: Store;
|
||||||
let actions$: Observable<any>;
|
let actions$: Observable<any>;
|
||||||
|
|
||||||
beforeEach(
|
beforeEach(waitForAsync(() => {
|
||||||
waitForAsync(() => {
|
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
imports: [
|
imports: [
|
||||||
MatIconModule,
|
MatIconModule,
|
||||||
|
|
@ -89,8 +88,7 @@ describe('WorkbasketDistributionTargetsComponent', () => {
|
||||||
workbasket: workbasketReadStateMock
|
workbasket: workbasketReadStateMock
|
||||||
});
|
});
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
})
|
}));
|
||||||
);
|
|
||||||
|
|
||||||
it('should create component', () => {
|
it('should create component', () => {
|
||||||
expect(component).toBeTruthy();
|
expect(component).toBeTruthy();
|
||||||
|
|
|
||||||
|
|
@ -86,8 +86,7 @@ describe('WorkbasketInformationComponent', () => {
|
||||||
let store: Store;
|
let store: Store;
|
||||||
let actions$: Observable<any>;
|
let actions$: Observable<any>;
|
||||||
|
|
||||||
beforeEach(
|
beforeEach(waitForAsync(() => {
|
||||||
waitForAsync(() => {
|
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
imports: [
|
imports: [
|
||||||
FormsModule,
|
FormsModule,
|
||||||
|
|
@ -141,8 +140,7 @@ describe('WorkbasketInformationComponent', () => {
|
||||||
component.workbasket = selectedWorkbasketMock;
|
component.workbasket = selectedWorkbasketMock;
|
||||||
|
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
})
|
}));
|
||||||
);
|
|
||||||
|
|
||||||
it('should create component', () => {
|
it('should create component', () => {
|
||||||
expect(component).toBeTruthy();
|
expect(component).toBeTruthy();
|
||||||
|
|
@ -174,9 +172,7 @@ describe('WorkbasketInformationComponent', () => {
|
||||||
expect(component.workbasket).toMatchObject(component.workbasketClone);
|
expect(component.workbasket).toMatchObject(component.workbasketClone);
|
||||||
});
|
});
|
||||||
|
|
||||||
it(
|
it('should save workbasket when workbasketId there', waitForAsync(() => {
|
||||||
'should save workbasket when workbasketId there',
|
|
||||||
waitForAsync(() => {
|
|
||||||
component.workbasket = { ...selectedWorkbasketMock };
|
component.workbasket = { ...selectedWorkbasketMock };
|
||||||
component.workbasket.workbasketId = '1';
|
component.workbasket.workbasketId = '1';
|
||||||
component.action = ACTION.COPY;
|
component.action = ACTION.COPY;
|
||||||
|
|
@ -185,18 +181,14 @@ describe('WorkbasketInformationComponent', () => {
|
||||||
component.onSave();
|
component.onSave();
|
||||||
expect(actionDispatched).toBe(true);
|
expect(actionDispatched).toBe(true);
|
||||||
expect(component.workbasketClone).toMatchObject(component.workbasket);
|
expect(component.workbasketClone).toMatchObject(component.workbasket);
|
||||||
})
|
}));
|
||||||
);
|
|
||||||
|
|
||||||
it(
|
it('should dispatch MarkWorkbasketforDeletion action when onRemoveConfirmed is called', waitForAsync(() => {
|
||||||
'should dispatch MarkWorkbasketforDeletion action when onRemoveConfirmed is called',
|
|
||||||
waitForAsync(() => {
|
|
||||||
let actionDispatched = false;
|
let actionDispatched = false;
|
||||||
actions$.pipe(ofActionDispatched(MarkWorkbasketForDeletion)).subscribe(() => (actionDispatched = true));
|
actions$.pipe(ofActionDispatched(MarkWorkbasketForDeletion)).subscribe(() => (actionDispatched = true));
|
||||||
component.onRemoveConfirmed();
|
component.onRemoveConfirmed();
|
||||||
expect(actionDispatched).toBe(true);
|
expect(actionDispatched).toBe(true);
|
||||||
})
|
}));
|
||||||
);
|
|
||||||
|
|
||||||
it('should create new workbasket when workbasketId is undefined', () => {
|
it('should create new workbasket when workbasketId is undefined', () => {
|
||||||
component.workbasket.workbasketId = undefined;
|
component.workbasket.workbasketId = undefined;
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,7 @@ describe('CanvasComponent', () => {
|
||||||
let debugElement: DebugElement;
|
let debugElement: DebugElement;
|
||||||
let component: CanvasComponent;
|
let component: CanvasComponent;
|
||||||
|
|
||||||
beforeEach(
|
beforeEach(waitForAsync(() => {
|
||||||
waitForAsync(() => {
|
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
imports: [NgxsModule.forRoot([SettingsState]), HttpClientTestingModule, MatDialogModule],
|
imports: [NgxsModule.forRoot([SettingsState]), HttpClientTestingModule, MatDialogModule],
|
||||||
declarations: [CanvasComponent]
|
declarations: [CanvasComponent]
|
||||||
|
|
@ -30,8 +29,7 @@ describe('CanvasComponent', () => {
|
||||||
settings: settingsStateMock
|
settings: settingsStateMock
|
||||||
});
|
});
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
})
|
}));
|
||||||
);
|
|
||||||
|
|
||||||
it('should create the component', () => {
|
it('should create the component', () => {
|
||||||
expect(component).toBeTruthy();
|
expect(component).toBeTruthy();
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,7 @@ describe('TaskPriorityReportFilterComponent', () => {
|
||||||
let debugElement: DebugElement;
|
let debugElement: DebugElement;
|
||||||
let component: TaskPriorityReportFilterComponent;
|
let component: TaskPriorityReportFilterComponent;
|
||||||
|
|
||||||
beforeEach(
|
beforeEach(waitForAsync(() => {
|
||||||
waitForAsync(() => {
|
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
imports: [
|
imports: [
|
||||||
NgxsModule.forRoot([SettingsState]),
|
NgxsModule.forRoot([SettingsState]),
|
||||||
|
|
@ -38,8 +37,7 @@ describe('TaskPriorityReportFilterComponent', () => {
|
||||||
settings: settingsStateMock
|
settings: settingsStateMock
|
||||||
});
|
});
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
})
|
}));
|
||||||
);
|
|
||||||
|
|
||||||
it('should create the component', () => {
|
it('should create the component', () => {
|
||||||
expect(component).toBeTruthy();
|
expect(component).toBeTruthy();
|
||||||
|
|
|
||||||
|
|
@ -43,8 +43,7 @@ describe('TaskPriorityReportComponent', () => {
|
||||||
let debugElement: DebugElement;
|
let debugElement: DebugElement;
|
||||||
let component: TaskPriorityReportComponent;
|
let component: TaskPriorityReportComponent;
|
||||||
|
|
||||||
beforeEach(
|
beforeEach(waitForAsync(() => {
|
||||||
waitForAsync(() => {
|
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
imports: [NgxsModule.forRoot([SettingsState]), MatTableModule, HttpClientTestingModule, MatDividerModule],
|
imports: [NgxsModule.forRoot([SettingsState]), MatTableModule, HttpClientTestingModule, MatDividerModule],
|
||||||
declarations: [TaskPriorityReportComponent, GermanTimeFormatPipe, CanvasStub, TaskPriorityReportFilterStub],
|
declarations: [TaskPriorityReportComponent, GermanTimeFormatPipe, CanvasStub, TaskPriorityReportFilterStub],
|
||||||
|
|
@ -64,8 +63,7 @@ describe('TaskPriorityReportComponent', () => {
|
||||||
settings: settingsStateMock
|
settings: settingsStateMock
|
||||||
});
|
});
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
})
|
}));
|
||||||
);
|
|
||||||
|
|
||||||
it('should create the component', () => {
|
it('should create the component', () => {
|
||||||
expect(component).toBeTruthy();
|
expect(component).toBeTruthy();
|
||||||
|
|
|
||||||
|
|
@ -29,8 +29,7 @@ describe('SettingsComponent', () => {
|
||||||
let store: Store;
|
let store: Store;
|
||||||
let actions$: Observable<any>;
|
let actions$: Observable<any>;
|
||||||
|
|
||||||
beforeEach(
|
beforeEach(waitForAsync(() => {
|
||||||
waitForAsync(() => {
|
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
imports: [
|
imports: [
|
||||||
NgxsModule.forRoot([SettingsState]),
|
NgxsModule.forRoot([SettingsState]),
|
||||||
|
|
@ -62,8 +61,7 @@ describe('SettingsComponent', () => {
|
||||||
settings: settingsStateMock
|
settings: settingsStateMock
|
||||||
});
|
});
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
})
|
}));
|
||||||
);
|
|
||||||
|
|
||||||
it('should create component', () => {
|
it('should create component', () => {
|
||||||
expect(component).toBeTruthy();
|
expect(component).toBeTruthy();
|
||||||
|
|
|
||||||
|
|
@ -28,8 +28,7 @@ describe('NavBarComponent', () => {
|
||||||
let debugElement: DebugElement;
|
let debugElement: DebugElement;
|
||||||
let route = '';
|
let route = '';
|
||||||
|
|
||||||
beforeEach(
|
beforeEach(waitForAsync(() => {
|
||||||
waitForAsync(() => {
|
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
declarations: [NavBarComponent, SvgIconStub],
|
declarations: [NavBarComponent, SvgIconStub],
|
||||||
imports: [MatIconModule, HttpClientTestingModule, MatToolbarModule],
|
imports: [MatIconModule, HttpClientTestingModule, MatToolbarModule],
|
||||||
|
|
@ -38,8 +37,7 @@ describe('NavBarComponent', () => {
|
||||||
{ provide: SelectedRouteService, useValue: SelectedRouteServiceSpy }
|
{ provide: SelectedRouteService, useValue: SelectedRouteServiceSpy }
|
||||||
]
|
]
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
})
|
}));
|
||||||
);
|
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
fixture = TestBed.createComponent(NavBarComponent);
|
fixture = TestBed.createComponent(NavBarComponent);
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,7 @@ describe('TypeAheadComponent with AccessId input', () => {
|
||||||
let debugElement: DebugElement;
|
let debugElement: DebugElement;
|
||||||
let component: TypeAheadComponent;
|
let component: TypeAheadComponent;
|
||||||
|
|
||||||
beforeEach(
|
beforeEach(waitForAsync(() => {
|
||||||
waitForAsync(() => {
|
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
imports: [
|
imports: [
|
||||||
NgxsModule.forRoot([]),
|
NgxsModule.forRoot([]),
|
||||||
|
|
@ -41,8 +40,7 @@ describe('TypeAheadComponent with AccessId input', () => {
|
||||||
debugElement = fixture.debugElement;
|
debugElement = fixture.debugElement;
|
||||||
component = fixture.componentInstance;
|
component = fixture.componentInstance;
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
})
|
}));
|
||||||
);
|
|
||||||
|
|
||||||
it('should create component', () => {
|
it('should create component', () => {
|
||||||
expect(component).toBeTruthy();
|
expect(component).toBeTruthy();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue