diff --git a/src/Application/HumanResource/Leave/Query/GetLeaveRequestsOverviewQueryHandler.spec.ts b/src/Application/HumanResource/Leave/Query/GetLeaveRequestsOverviewQueryHandler.spec.ts index 06fed5d1..55d00447 100644 --- a/src/Application/HumanResource/Leave/Query/GetLeaveRequestsOverviewQueryHandler.spec.ts +++ b/src/Application/HumanResource/Leave/Query/GetLeaveRequestsOverviewQueryHandler.spec.ts @@ -43,7 +43,7 @@ describe('GetLeaveRequestsOverviewQueryHandler', () => { endDate, userId ) - ).thenReturn(new Promise(resolve => resolve(6 * 420))); + ).thenResolve(6 * 420); when(dateUtils.getLeaveDurationAsDays(6 * 420)).thenReturn(6);