Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alanshaw committed Nov 28, 2024
1 parent fdc96a6 commit 9faebb8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/w3up-client/test/capability/space.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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')
Expand Down Expand Up @@ -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')
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 9faebb8

Please sign in to comment.