diff --git a/src/core/components/init-assets.js b/src/core/components/init-assets.js index dd71341b3a..33778a50ef 100644 --- a/src/core/components/init-assets.js +++ b/src/core/components/init-assets.js @@ -35,11 +35,11 @@ module.exports = function addDefaultAssets (self, log, callback) { importer(self._ipldResolver), pull.through((el) => { if (el.path === 'files/init-docs/docs') { - // const hash = mh.toB58String(el.multihash) log('to get started, enter:') log() log(`\t jsipfs files cat /ipfs/QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB`) // TODO when we support pathing in unixfs-engine + // const hash = mh.toB58String(el.multihash) // log(`\t jsipfs files cat /ipfs/${hash}/readme`) log() } diff --git a/test/core/init.spec.js b/test/core/init.spec.js index dc604d9adf..351e2e5c1d 100644 --- a/test/core/init.spec.js +++ b/test/core/init.spec.js @@ -68,7 +68,7 @@ describe('init', () => { it('init docs are written', (done) => { ipfs.init({ bits: 1024 }, (err) => { expect(err).to.not.exist() - const multihash = new Buffer('12205e7c3ce237f936c76faf625e90f7751a9f5eeb048f59873303c215e9cce87599', 'hex') + const multihash = 'QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB' ipfs.object.get(multihash, {}, (err, node) => { expect(err).to.not.exist()