Skip to content

Commit

Permalink
test: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmahidalgo committed Dec 17, 2024
1 parent 31e2519 commit 913a259
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/unit/orders-adapters.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ListingStatus, Network, NFTCategory, Order } from '@dcl/schemas'
import { fromDBOrderToOrder } from '../../src/adapters/orders'
import { fromSecondsToMilliseconds } from '../../src/logic/date'
import { DBOrder } from '../../src/ports/orders/types'
import { SquidNetwork } from '../../src/types'

Expand All @@ -14,7 +15,7 @@ describe('fromDBOrderToOrder', () => {
buyer: '0xdef',
price: '100',
status: ListingStatus.OPEN,
expires_at: Date.now() / 1000,
expires_at: Math.round(Date.now() / 1000),
created_at: Date.now() / 1000,
updated_at: Date.now() / 1000,
network: SquidNetwork.ETHEREUM,
Expand All @@ -36,8 +37,8 @@ describe('fromDBOrderToOrder', () => {
price: '100',
status: ListingStatus.OPEN,
expiresAt: dbOrder.expires_at,
createdAt: dbOrder.created_at * 1000,
updatedAt: dbOrder.updated_at * 1000,
createdAt: fromSecondsToMilliseconds(dbOrder.created_at),
updatedAt: fromSecondsToMilliseconds(dbOrder.updated_at),
network: Network.ETHEREUM,
chainId: 1,
issuedId: 'abc123',
Expand Down

0 comments on commit 913a259

Please sign in to comment.