Skip to content

Commit

Permalink
chore: appease linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw committed Jun 6, 2024
1 parent 91b65cf commit d9bd509
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
10 changes: 8 additions & 2 deletions packages/upload-api/test/storage/allocations-storage-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ export const test = {
const digest = multihash.bytes
const size = data.byteLength

const allocationExist0 = await allocationsStorage.exists(spaceDid, multihash)
const allocationExist0 = await allocationsStorage.exists(
spaceDid,
multihash
)
assert.ok(!allocationExist0.error)
assert.ok(!allocationExist0.ok)

Expand Down Expand Up @@ -180,7 +183,10 @@ export const test = {
assert.ok(allocationInsert.ok)
assert.ok(allocationInsert.ok?.blob)

const allocationExist1 = await allocationsStorage.exists(spaceDid, multihash)
const allocationExist1 = await allocationsStorage.exists(
spaceDid,
multihash
)
assert.ok(allocationExist1.ok)
assert.ok(!allocationExist1.error)
},
Expand Down
2 changes: 1 addition & 1 deletion packages/upload-api/test/storage/blobs-storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export class BlobsStorage {
}

/** @param {Types.MultihashDigest} digest */
async createDownloadUrl (digest) {
async createDownloadUrl(digest) {
const url = new URL(this.#bucketPath(digest), this.baseURL)
return ok(/** @type {Types.URI} */ (url.toString()))
}
Expand Down
9 changes: 3 additions & 6 deletions packages/w3up-client/test/capability/blob.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,9 @@ export const BlobClient = Test.withContext({
})

// TODO we should check blobsStorage as well
assert.deepEqual(
await allocationsStorage.exists(space.did(), multihash),
{
ok: true,
}
)
assert.deepEqual(await allocationsStorage.exists(space.did(), multihash), {
ok: true,
})

assert.deepEqual(multihash.bytes, bytesHash.bytes)
},
Expand Down
5 changes: 1 addition & 4 deletions packages/w3up-client/test/client.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,7 @@ export const testClient = {
})

assert.deepEqual(
await allocationsStorage.exists(
space.did(),
expectedCar.cid.multihash
),
await allocationsStorage.exists(space.did(), expectedCar.cid.multihash),
{
ok: true,
}
Expand Down

0 comments on commit d9bd509

Please sign in to comment.