Skip to content

Commit

Permalink
fix tests so that they simulate the data from chain - which is a time…
Browse files Browse the repository at this point in the history
…stamp from unix epoch in seconds not MS
  • Loading branch information
glitch003 committed Nov 2, 2024
1 parent 43472fa commit 3ceb3e0
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const tokenFixtures: TokenFixtures = {
capacity: {
expiresAt: {
formatted: DAY_BEFORE_YESTERDAY.toISOString(),
timestamp: DAY_BEFORE_YESTERDAY.getTime(),
timestamp: DAY_BEFORE_YESTERDAY.getTime() / 1000, // the real data from the contract is in seconds
},
requestsPerMillisecond: 50,
},
Expand All @@ -73,7 +73,7 @@ export const tokenFixtures: TokenFixtures = {
capacity: {
expiresAt: {
formatted: YESTERDAY.toISOString(),
timestamp: YESTERDAY.getTime(),
timestamp: YESTERDAY.getTime() / 1000, // the real data from the contract is in seconds
},
requestsPerMillisecond: 50,
},
Expand All @@ -91,7 +91,7 @@ export const tokenFixtures: TokenFixtures = {
capacity: {
expiresAt: {
formatted: DAY_AFTER_TOMORROW.toISOString(),
timestamp: DAY_AFTER_TOMORROW.getTime(),
timestamp: DAY_AFTER_TOMORROW.getTime() / 1000, // the real data from the contract is in seconds
},
requestsPerMillisecond: 50,
},
Expand All @@ -107,7 +107,7 @@ export const tokenFixtures: TokenFixtures = {
capacity: {
expiresAt: {
formatted: NEXT_WEEK.toISOString(),
timestamp: NEXT_WEEK.getTime(),
timestamp: NEXT_WEEK.getTime() / 1000, // the real data from the contract is in seconds,
},
requestsPerMillisecond: 50,
},
Expand All @@ -123,7 +123,7 @@ export const tokenFixtures: TokenFixtures = {
capacity: {
expiresAt: {
formatted: TWO_WEEKS_FROM_NOW.toISOString(),
timestamp: TWO_WEEKS_FROM_NOW.getTime(),
timestamp: TWO_WEEKS_FROM_NOW.getTime() / 1000, // the real data from the contract is in seconds,
},
requestsPerMillisecond: 50,
},
Expand All @@ -141,7 +141,7 @@ export const tokenFixtures: TokenFixtures = {
capacity: {
expiresAt: {
formatted: LATER_TODAY.toISOString(),
timestamp: LATER_TODAY.getTime(),
timestamp: LATER_TODAY.getTime() / 1000, // the real data from the contract is in seconds,
},
requestsPerMillisecond: 50,
},
Expand All @@ -157,7 +157,7 @@ export const tokenFixtures: TokenFixtures = {
capacity: {
expiresAt: {
formatted: TOMORROW.toISOString(),
timestamp: TOMORROW.getTime(),
timestamp: TOMORROW.getTime() / 1000, // the real data from the contract is in seconds,
},
requestsPerMillisecond: 50,
},
Expand Down

0 comments on commit 3ceb3e0

Please sign in to comment.