Skip to content

Commit

Permalink
chore: fine tune tests #16
Browse files Browse the repository at this point in the history
  • Loading branch information
wooglie committed May 8, 2024
1 parent f33dd3d commit 768f661
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ describe('updateAuction', () => {
const withStep = withStepFactory();

auctionStartDate = dateToPactInt(addSecondsToDate(new Date(), 10));
auctionEndDate = dateToPactInt(addSecondsToDate(new Date(), 50));
auctionEndDate = dateToPactInt(addMinutesToDate(new Date(), 10));

const result = await updateAuction(
{
Expand Down Expand Up @@ -775,7 +775,7 @@ describe('buyToken', () => {

it('should create conventional auction', async () => {
auctionStartDate = dateToPactInt(addSecondsToDate(new Date(), 10));
auctionEndDate = dateToPactInt(addSecondsToDate(new Date(), 50));
auctionEndDate = dateToPactInt(addMinutesToDate(new Date(), 1));

const data = {
auctionConfig: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const addDaysToDate = (originalDate: Date, daysToAdd: number) =>
new Date(originalDate.getTime() + daysToAdd * 86400000);

export const addMinutesToDate = (originalDate: Date, minutesToAdd: number) =>
new Date(originalDate.getTime() + minutesToAdd * 3600000);
new Date(originalDate.getTime() + minutesToAdd * 60000);

export const addSecondsToDate = (originalDate: Date, secondsToAdd: number) =>
new Date(originalDate.getTime() + secondsToAdd * 1000);
Expand Down

0 comments on commit 768f661

Please sign in to comment.