Skip to content

Commit

Permalink
Linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
saul-jb committed Apr 10, 2024
1 parent 89c8512 commit a7538d5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/daemon/test/modules/downloader.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ describe('downloader', () => {
age
})

assert.equal(state1.length, 1)
assert.equal(state1[0].size, 0)
assert.equal(state1[0].blocks, 0)
assert.equal(state1.length, 1)
assert.equal(state1[0].size, 0)
assert.equal(state1[0].blocks, 0)

const value = await blockstore.get(dag[0])

Expand All @@ -81,9 +81,9 @@ describe('downloader', () => {
age
})

assert.equal(state2.length, 1)
assert.equal(state2[0].size, value.length)
assert.equal(state2[0].blocks, 1)
assert.equal(state2.length, 1)
assert.equal(state2[0].size, value.length)
assert.equal(state2[0].blocks, 1)

await new Promise(resolve => setTimeout(resolve, age / 2))

Expand All @@ -104,9 +104,9 @@ describe('downloader', () => {
age
})

assert.equal(state3.length, 1)
assert.equal(state3[0].size, values.reduce((a, c) => c.length + a, 0))
assert.equal(state3[0].blocks, values.length)
assert.equal(state3.length, 1)
assert.equal(state3[0].size, values.reduce((a, c) => c.length + a, 0))
assert.equal(state3[0].blocks, values.length)

client.close()
await components.stop()
Expand Down

0 comments on commit a7538d5

Please sign in to comment.