From 9faebb8b099f05a2c13a650a9e517095024b5c2a Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Thu, 28 Nov 2024 18:28:43 +0000 Subject: [PATCH] fix: tests --- packages/w3up-client/test/capability/space.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/w3up-client/test/capability/space.test.js b/packages/w3up-client/test/capability/space.test.js index b288b8afc..d25f447db 100644 --- a/packages/w3up-client/test/capability/space.test.js +++ b/packages/w3up-client/test/capability/space.test.js @@ -142,7 +142,7 @@ export const SpaceClient = Test.withContext({ assert.equal(egressRecord.bytes, car.size, 'bytes should be the same') assert.equal( new Date(egressRecord.servedAt).getTime(), - Math.floor(new Date(egressData.servedAt).getTime() / 1000) * 1000, + Math.floor(new Date(egressData.servedAt).getTime() / 1000), 'servedAt should be the same' ) assert.ok(egressRecord.cause.toString(), 'cause should be a link') @@ -252,7 +252,7 @@ export const SpaceClient = Test.withContext({ assert.equal(egressRecord.bytes, car.size, 'bytes should be the same') assert.equal( new Date(egressRecord.servedAt).getTime(), - Math.floor(new Date(egressData.servedAt).getTime() / 1000) * 1000, + Math.floor(new Date(egressData.servedAt).getTime() / 1000), 'servedAt should be the same' ) assert.ok(egressRecord.cause.toString(), 'cause should be a link') @@ -364,7 +364,7 @@ export const SpaceClient = Test.withContext({ assert.equal(egressRecord.bytes, car.size, 'bytes should be the same') assert.equal( new Date(egressRecord.servedAt).getTime(), - Math.floor(new Date(egressData.servedAt).getTime() / 1000) * 1000, + Math.floor(new Date(egressData.servedAt).getTime() / 1000), 'servedAt should be the same' ) assert.ok(egressRecord.cause.toString(), 'cause should be a link') @@ -476,7 +476,7 @@ export const SpaceClient = Test.withContext({ assert.equal(egressRecord.bytes, car.size, 'bytes should be the same') assert.equal( new Date(egressRecord.servedAt).getTime(), - Math.floor(new Date(egressData.servedAt).getTime() / 1000) * 1000, + Math.floor(new Date(egressData.servedAt).getTime() / 1000), 'servedAt should be the same' ) assert.ok(egressRecord.cause.toString(), 'cause should be a link')