Skip to content

Commit

Permalink
remove/comment test
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ocean committed Jul 24, 2024
1 parent c665496 commit 5d6e2e8
Showing 1 changed file with 12 additions and 19 deletions.
31 changes: 12 additions & 19 deletions src/test/unit/storage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,8 @@ describe('Arweave Storage getFileInfo tests', function () {
const fileInfoRequest: FileInfoRequest = {
type: FileObjectType.ARWEAVE
}
console.log('1 - DO YOU SEE ME??')
const fileInfo = await storage.getFileInfo(fileInfoRequest)

console.log('2 - DO YOU SEE ME??')

assert(fileInfo[0].valid, 'File info is valid')
assert(fileInfo[0].type === FileObjectType.ARWEAVE, 'Type is incorrect')
assert(
Expand All @@ -351,22 +348,18 @@ describe('Arweave Storage getFileInfo tests', function () {
assert(fileInfo[0].contentLength === '680782', 'Content length is incorrect')
})

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('3 - DO YOU STILL SEE ME??')
await storage.getFileInfo(fileInfoRequest)
console.log('4 - DO YOU STILL SEE ME HERE??')
} catch (err) {
expect(err.message).to.equal('Transaction ID is required for type arweave')
}
})
// it('Throws error when transaction ID is missing in request', async () => {
// console.log('DO YOU SEE ME??')

// const fileInfoRequest: FileInfoRequest = { type: FileObjectType.ARWEAVE }
// try {
// console.log('3 - DO YOU STILL SEE ME??')
// await storage.getFileInfo(fileInfoRequest)
// console.log('4 - DO YOU STILL SEE ME HERE??')
// } catch (err) {
// expect(err.message).to.equal('Transaction ID is required for type arweave')
// }
// })
})

describe('Arweave Storage with malformed transaction ID', () => {
Expand Down

0 comments on commit 5d6e2e8

Please sign in to comment.