From e1f2eca403e909e4624272550a4fab24ddad4d98 Mon Sep 17 00:00:00 2001 From: luciaGarciaMiguelanez Date: Thu, 9 May 2024 15:49:44 +0200 Subject: [PATCH] fix: subcontracted activity role Fix subcontracted activities qry test --- .../application/get-subcontracted-activities-qry.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/features/binnacle/features/activity/application/get-subcontracted-activities-qry.test.ts b/src/features/binnacle/features/activity/application/get-subcontracted-activities-qry.test.ts index 95cc3279..3842b021 100644 --- a/src/features/binnacle/features/activity/application/get-subcontracted-activities-qry.test.ts +++ b/src/features/binnacle/features/activity/application/get-subcontracted-activities-qry.test.ts @@ -15,6 +15,8 @@ describe('GetSubcontractedActivitiesQry', () => { const result = await getSubcontractedActivitiesQry.internalExecute(interval) + console.log(subcontractedActivities) + expect(result).toEqual(subcontractedActivities) }) }) @@ -33,7 +35,7 @@ function setup() { getUserLoggedQry.execute.mockResolvedValue(user) const activitiesResponse = [ - SubcontractedActivityMother.minutesBillableActivityWithProjectRoleId(), + SubcontractedActivityMother.minutesActivityWithProjectRoleIdA(), SubcontractedActivityMother.minutesBillableActivityWithProjectRoleId() ] subcontractedActivityRepository.getAll