Skip to content

Commit

Permalink
chore: remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
joshghent committed Sep 11, 2022
1 parent e74c86a commit fc2ac7d
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions packages/cron/test/pins-backup.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,6 @@ describe('cron - pins backup', () => {
await createPsaPinRequest(dbClient, authKey, cids[1], { pins: uploadPins })
await createPsaPinRequest(dbClient, authKey, cids[2], { pins: uploadPins })

// const exportCar = (cidNumber) => {
// return async function * () {
// console.log('mocking response of IPFS return')
// yield {
// content: Buffer.from('test file'),
// contentCid: cids[cidNumber],
// sourceCid: cids[cidNumber]
// }
// }
// }

const exportCarStub = sinon.stub(backup, 'exportCar')

exportCarStub.onCall(0).returns(async function * () {
Expand Down Expand Up @@ -130,18 +119,6 @@ describe('cron - pins backup', () => {
}
})

// const uploadCar = (cidNumber) => {
// return async function * () {
// console.log('mocking upload of car file')
// yield {
// content: Buffer.from('test file'),
// contentCid: cids[cidNumber],
// sourceCid: cids[cidNumber],
// backupUrl: 'https://test.s3.eu-west-1.amazonaws.com/my-car'
// }
// }
// }

const uploadCarStub = sinon.stub(backup, 'uploadCar')

uploadCarStub.onCall(0).returns(async function * () {
Expand Down Expand Up @@ -172,7 +149,6 @@ describe('cron - pins backup', () => {
}
})

// TODO: Mock cluster resposne
// Override cluster statys to return pinned
cluster.status = async (cid) => {
return createPin(cid, 'pinned')
Expand Down

0 comments on commit fc2ac7d

Please sign in to comment.