Skip to content

Commit

Permalink
more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ocean committed Jul 24, 2024
1 parent 54026b2 commit c665496
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/test/unit/storage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,11 +353,16 @@ describe('Arweave Storage getFileInfo tests', function () {

it('Throws error when transaction ID is missing in request', async () => {
console.log('DO YOU SEE ME??')
// do it again
storage = new ArweaveStorage({
type: FileObjectType.ARWEAVE,
transactionId: 'gPPDyusRh2ZyFl-sQ2ODK6hAwCRBAOwp0OFKr0n23QE'
})
const fileInfoRequest: FileInfoRequest = { type: FileObjectType.ARWEAVE }
try {
console.log('DO YOU STILL SEE ME??')
console.log('3 - DO YOU STILL SEE ME??')
await storage.getFileInfo(fileInfoRequest)
console.log('DO YOU STILL SEE ME HERE??')
console.log('4 - DO YOU STILL SEE ME HERE??')
} catch (err) {
expect(err.message).to.equal('Transaction ID is required for type arweave')
}
Expand Down

0 comments on commit c665496

Please sign in to comment.