From fbbb7ea05cfc1775b7b165c6145e50803e23a46c Mon Sep 17 00:00:00 2001 From: prayansh_chhablani Date: Sun, 22 Dec 2024 13:49:40 +0530 Subject: [PATCH] test fix --- tests/helpers/volunteers.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/helpers/volunteers.ts b/tests/helpers/volunteers.ts index 026dc4313a..ada916a6a3 100644 --- a/tests/helpers/volunteers.ts +++ b/tests/helpers/volunteers.ts @@ -138,8 +138,6 @@ export const createVolunteerAndActions = async (): Promise< }); const today = new Date(); - const yesterday = new Date(today); - yesterday.setDate(today.getDate() - 1); const twoWeeksAgo = new Date(today); twoWeeksAgo.setDate(today.getDate() - 14); const twoMonthsAgo = new Date(today); @@ -158,7 +156,7 @@ export const createVolunteerAndActions = async (): Promise< hoursHistory: [ { hours: 2, - date: yesterday, + date: today, }, { hours: 4, @@ -186,7 +184,7 @@ export const createVolunteerAndActions = async (): Promise< hoursHistory: [ { hours: 1, - date: yesterday, + date: today, }, { hours: 2,