Skip to content

Commit 4005b05

Browse files
committed
fix test
1 parent dff1e62 commit 4005b05

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/w3up-client/test/capability/space.test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export const SpaceClient = Test.withContext({
142142
assert.equal(egressRecord.bytes, car.size, 'bytes should be the same')
143143
assert.equal(
144144
new Date(egressRecord.servedAt).getTime(),
145-
Math.floor(new Date(egressData.servedAt).getTime() / 1000) * 1000,
145+
Math.floor(new Date(egressData.servedAt).getTime() / 1000),
146146
'servedAt should be the same'
147147
)
148148
assert.ok(egressRecord.cause.toString(), 'cause should be a link')
@@ -252,7 +252,7 @@ export const SpaceClient = Test.withContext({
252252
assert.equal(egressRecord.bytes, car.size, 'bytes should be the same')
253253
assert.equal(
254254
new Date(egressRecord.servedAt).getTime(),
255-
Math.floor(new Date(egressData.servedAt).getTime() / 1000) * 1000,
255+
Math.floor(new Date(egressData.servedAt).getTime() / 1000),
256256
'servedAt should be the same'
257257
)
258258
assert.ok(egressRecord.cause.toString(), 'cause should be a link')
@@ -364,7 +364,7 @@ export const SpaceClient = Test.withContext({
364364
assert.equal(egressRecord.bytes, car.size, 'bytes should be the same')
365365
assert.equal(
366366
new Date(egressRecord.servedAt).getTime(),
367-
Math.floor(new Date(egressData.servedAt).getTime() / 1000) * 1000,
367+
Math.floor(new Date(egressData.servedAt).getTime() / 1000),
368368
'servedAt should be the same'
369369
)
370370
assert.ok(egressRecord.cause.toString(), 'cause should be a link')
@@ -476,7 +476,7 @@ export const SpaceClient = Test.withContext({
476476
assert.equal(egressRecord.bytes, car.size, 'bytes should be the same')
477477
assert.equal(
478478
new Date(egressRecord.servedAt).getTime(),
479-
Math.floor(new Date(egressData.servedAt).getTime() / 1000) * 1000,
479+
Math.floor(new Date(egressData.servedAt).getTime() / 1000),
480480
'servedAt should be the same'
481481
)
482482
assert.ok(egressRecord.cause.toString(), 'cause should be a link')

0 commit comments

Comments
 (0)