Skip to content

Commit be91b15

Browse files
Copilotrenemadsen
andcommitted
Fix TypeScript errors: use 'in' operator and add type assertions
Co-authored-by: renemadsen <[email protected]>
1 parent b158c59 commit be91b15

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

eform-client/src/app/plugins/modules/time-planning-pn/components/plannings/time-planning-actions/download-excel/download-excel-dialog.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ describe('DownloadExcelDialogComponent', () => {
141141
component.onDownloadExcelReportAllWorkers();
142142

143143
const callArgs = mockWorkingHoursService.downloadReportAllWorkers.calls.mostRecent().args[0];
144-
expect(callArgs.siteId).toBeUndefined();
144+
expect('siteId' in callArgs).toBe(false);
145145
});
146146
});
147147
});

eform-client/src/app/plugins/modules/time-planning-pn/components/plannings/time-plannings-container/time-plannings-container.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ describe('TimePlanningsContainerComponent', () => {
2222
mockStore = jasmine.createSpyObj('Store', ['select']);
2323

2424
mockStore.select.and.returnValue(of('en-US'));
25-
mockSettingsService.getAvailableSites.and.returnValue(of({ success: true, model: [] }));
26-
mockPlanningsService.getPlannings.and.returnValue(of({ success: true, model: [] }));
25+
mockSettingsService.getAvailableSites.and.returnValue(of({ success: true, model: [] }) as any);
26+
mockPlanningsService.getPlannings.and.returnValue(of({ success: true, model: [] }) as any);
2727

2828
await TestBed.configureTestingModule({
2929
declarations: [TimePlanningsContainerComponent],

0 commit comments

Comments
 (0)