Skip to content

Commit

Permalink
Fixed clean up in test
Browse files Browse the repository at this point in the history
  • Loading branch information
aminlatifi committed Dec 26, 2024
1 parent a6a70e6 commit acf04d0
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/resolvers/qAccResolver.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,11 +520,13 @@ function qAccStatTestCases() {
tokenPrice: 0.5,
}).save();
earlyAccessRound = await EarlyAccessRound.create({
roundNumber: Math.floor(Math.random() * 10000),
startDate: moment().subtract(3, 'days').toDate(),
endDate: moment().add(10, 'days').toDate(),
tokenPrice: undefined,
});
roundNumber: generateEARoundNumber(),
startDate: new Date('2000-01-14'),
endDate: new Date('2000-01-16'),
roundUSDCapPerProject: 1000000,
roundUSDCapPerUserPerProject: 50000,
tokenPrice: 0.1,
}).save();
sinon.useFakeTimers({
now: new Date('2001-01-15').getTime(),
});
Expand All @@ -534,6 +536,7 @@ function qAccStatTestCases() {
await ProjectRoundRecord.delete({});
await Donation.delete({ projectId: project.id });
await QfRound.delete(qfRound.id);
await EarlyAccessRound.delete(earlyAccessRound.id);

sinon.restore();
});
Expand Down

0 comments on commit acf04d0

Please sign in to comment.