Skip to content

Commit

Permalink
fix: address tests to use space/blob/*
Browse files Browse the repository at this point in the history
  • Loading branch information
joaosa committed Jun 3, 2024
1 parent 8382376 commit 37f8c84
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions packages/upload-client/test/blob.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,14 +207,16 @@ describe('Blob.add', () => {
return { ok: { time: Date.now() } }
}),
},
blob: {
// @ts-ignore Argument of type
add: provide(BlobCapabilities.add, ({ invocation }) => {
return setupBlobAddSuccessResponse(
{ issuer: space, audience: agent, with: space, proofs },
invocation
)
}),
space: {
blob: {
// @ts-ignore Argument of type
add: provide(BlobCapabilities.add, ({ invocation }) => {
return setupBlobAddSuccessResponse(
{ issuer: space, audience: agent, with: space, proofs },
invocation
)
}),
},
},
})

Expand Down Expand Up @@ -247,7 +249,7 @@ describe('Blob.add', () => {
}
),
{
message: 'failed blob/add invocation',
message: 'failed space/blob/add invocation',
}
)
})
Expand All @@ -272,14 +274,16 @@ describe('Blob.add', () => {
return { ok: { time: Date.now() } }
}),
},
blob: {
// @ts-ignore Argument of type
add: provide(BlobCapabilities.add, ({ invocation }) => {
return setupBlobAddSuccessResponse(
{ issuer: space, audience: agent, with: space, proofs },
invocation
)
}),
space: {
blob: {
// @ts-ignore Argument of type
add: provide(BlobCapabilities.add, ({ invocation }) => {
return setupBlobAddSuccessResponse(
{ issuer: space, audience: agent, with: space, proofs },
invocation
)
}),
},
},
})

Expand Down Expand Up @@ -314,7 +318,7 @@ describe('Blob.add', () => {
}
),
{
message: 'failed blob/add invocation',
message: 'failed space/blob/add invocation',
}
)
})
Expand Down

0 comments on commit 37f8c84

Please sign in to comment.