Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Mar 21, 2017
1 parent dd4aaa5 commit d672652
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/components/init-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down
2 changes: 1 addition & 1 deletion test/core/init.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d672652

Please sign in to comment.