From 560858dda9ba2e8e07132541aafd3e1d59fbfb71 Mon Sep 17 00:00:00 2001 From: Samuel Date: Thu, 29 Aug 2024 22:52:04 +0200 Subject: [PATCH] test: still trying to fix timestamps --- test/unit/service/seller-payout-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/service/seller-payout-service.ts b/test/unit/service/seller-payout-service.ts index cbdbdd703..5232eff85 100644 --- a/test/unit/service/seller-payout-service.ts +++ b/test/unit/service/seller-payout-service.ts @@ -336,7 +336,7 @@ describe('SellerPayoutService', () => { expect(sellerPayout.transfer).to.not.be.undefined; expect(sellerPayout.transfer.fromId).to.equal(params.requestedById); expect(sellerPayout.transfer.toId).to.be.null; - const transferCreationDate = Math.floor(sellerPayout.transfer.createdAt.getTime() / 1000); + const transferCreationDate = sellerPayout.transfer.createdAt.getTime(); expect(transferCreationDate).to.equal(actualEndDate); const incomingTransactions = ctx.subTransactions.filter((s) => s.to.id === params.requestedById);