Skip to content
This repository was archived by the owner on Sep 28, 2021. It is now read-only.

Commit d673593

Browse files
committed
style: remove unused console.log
License: MIT Signed-off-by: Marcin Rataj <[email protected]>
1 parent 116255e commit d673593

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

test/index.spec.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const { getResponse } = require('../src')
1616
const makeWebResponseEnv = require('./utils/web-response-env')
1717

1818
const df = DaemonFactory.create({ type: 'proc', exec: ipfs })
19-
// const cidv1b32 = (cid) => new CID(cid).toBaseEncodedString('base32')
2019

2120
describe('resolve file (CIDv0)', function () {
2221
let ipfs = null
@@ -83,7 +82,6 @@ describe('resolve file (CIDv1)', function () {
8382
ipfs.files.add(file.data, {cidVersion: 1}, (err, filesAdded) => {
8483
expect(err).to.not.exist()
8584
expect(filesAdded).to.have.length(1)
86-
// console.log('CIDv1', filesAdded)
8785
const retrievedFile = filesAdded[0]
8886
expect(new CID(retrievedFile.hash)).to.deep.equal(new CID(file.cid))
8987
// expect(retrievedFile.size, 'ipfs.files.add result size should not be smaller than input buffer').greaterThan(file.data.length)
@@ -140,7 +138,6 @@ describe('resolve directory (CIDv0)', function () {
140138
ipfs.files.add(dirs, {cidVersion: 0}, (err, res) => {
141139
expect(err).to.not.exist()
142140
const root = res[res.length - 1]
143-
// console.log('root CIDv0', res)
144141

145142
expect(root.path).to.equal('test-folder')
146143
expect(new CID(root.hash)).to.deep.equal(new CID(directory.cid))
@@ -213,7 +210,6 @@ describe('resolve directory (CIDv1)', function () {
213210
ipfs.files.add(dirs, {cidVersion: 1}, (err, res) => {
214211
expect(err).to.not.exist()
215212
const root = res[res.length - 1]
216-
// console.log('root CIDv1', res)
217213
expect(root.path).to.equal('test-folder')
218214
// expect(res[0].size, 'ipfs.files.add 1st result size should not be smaller than 1st input buffer').greaterThan(dirs[0].content.length)
219215
// expect(res[1].size, 'ipfs.files.add 2nd result size should not be smaller than 2nd input buffer').greaterThan(dirs[1].content.length)
@@ -337,7 +333,6 @@ describe('resolve web page (CIDv1)', function () {
337333
ipfs.files.add(dirs, {cidVersion: 1}, (err, res) => {
338334
expect(err).to.not.exist()
339335
const root = res[res.length - 1]
340-
// console.log('ipfs.files.add result', res)
341336
expect(root.path).to.equal('test-site')
342337
expect(new CID(root.hash)).to.deep.equal(new CID(webpage.cid))
343338
done()

0 commit comments

Comments
 (0)