Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
prayanshchh committed Dec 22, 2024
1 parent c942e2c commit fbbb7ea
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/helpers/volunteers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -158,7 +156,7 @@ export const createVolunteerAndActions = async (): Promise<
hoursHistory: [
{
hours: 2,
date: yesterday,
date: today,
},
{
hours: 4,
Expand Down Expand Up @@ -186,7 +184,7 @@ export const createVolunteerAndActions = async (): Promise<
hoursHistory: [
{
hours: 1,
date: yesterday,
date: today,
},
{
hours: 2,
Expand Down

0 comments on commit fbbb7ea

Please sign in to comment.