@@ -16,7 +16,6 @@ const { getResponse } = require('../src')
16
16
const makeWebResponseEnv = require ( './utils/web-response-env' )
17
17
18
18
const df = DaemonFactory . create ( { type : 'proc' , exec : ipfs } )
19
- // const cidv1b32 = (cid) => new CID(cid).toBaseEncodedString('base32')
20
19
21
20
describe ( 'resolve file (CIDv0)' , function ( ) {
22
21
let ipfs = null
@@ -83,7 +82,6 @@ describe('resolve file (CIDv1)', function () {
83
82
ipfs . files . add ( file . data , { cidVersion : 1 } , ( err , filesAdded ) => {
84
83
expect ( err ) . to . not . exist ( )
85
84
expect ( filesAdded ) . to . have . length ( 1 )
86
- // console.log('CIDv1', filesAdded)
87
85
const retrievedFile = filesAdded [ 0 ]
88
86
expect ( new CID ( retrievedFile . hash ) ) . to . deep . equal ( new CID ( file . cid ) )
89
87
// 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 () {
140
138
ipfs . files . add ( dirs , { cidVersion : 0 } , ( err , res ) => {
141
139
expect ( err ) . to . not . exist ( )
142
140
const root = res [ res . length - 1 ]
143
- // console.log('root CIDv0', res)
144
141
145
142
expect ( root . path ) . to . equal ( 'test-folder' )
146
143
expect ( new CID ( root . hash ) ) . to . deep . equal ( new CID ( directory . cid ) )
@@ -213,7 +210,6 @@ describe('resolve directory (CIDv1)', function () {
213
210
ipfs . files . add ( dirs , { cidVersion : 1 } , ( err , res ) => {
214
211
expect ( err ) . to . not . exist ( )
215
212
const root = res [ res . length - 1 ]
216
- // console.log('root CIDv1', res)
217
213
expect ( root . path ) . to . equal ( 'test-folder' )
218
214
// expect(res[0].size, 'ipfs.files.add 1st result size should not be smaller than 1st input buffer').greaterThan(dirs[0].content.length)
219
215
// 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 () {
337
333
ipfs . files . add ( dirs , { cidVersion : 1 } , ( err , res ) => {
338
334
expect ( err ) . to . not . exist ( )
339
335
const root = res [ res . length - 1 ]
340
- // console.log('ipfs.files.add result', res)
341
336
expect ( root . path ) . to . equal ( 'test-site' )
342
337
expect ( new CID ( root . hash ) ) . to . deep . equal ( new CID ( webpage . cid ) )
343
338
done ( )
0 commit comments