Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos authored and daviddias committed Jun 17, 2019
1 parent 2bd6249 commit ce1b80e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"ipfs-http-client": "^32.0.0",
"ipfs-repo": "~0.26.6",
"ipfs-unixfs": "~0.1.16",
"ipfsd-ctl": "~0.42.2",
"ipfsd-ctl": "~0.42.4",
"ipns": "~0.5.1",
"is-ci": "^2.0.0",
"left-pad": "^1.3.0",
Expand Down
12 changes: 6 additions & 6 deletions test/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ class ExpectedError extends Error {
function checkNodeTypes (daemon, file) {
return daemon.api.object.get(file.hash)
.then(node => {
const meta = UnixFs.unmarshal(node.data)
const meta = UnixFs.unmarshal(node.Data)

expect(meta.type).to.equal('file')
expect(node.links.length).to.equal(2)
expect(node.Links.length).to.equal(2)

return Promise.all(
node.links.map(link => daemon.api.object.get(link.toJSON().cid).then(child => {
const childMeta = UnixFs.unmarshal(child.data)
node.Links.map(link => daemon.api.object.get(link.Hash).then(child => {
const childMeta = UnixFs.unmarshal(child.Data)

expect(childMeta.type).to.equal('raw')
}))
Expand Down Expand Up @@ -379,7 +379,7 @@ describe('files', function () {
await daemon.api.files.cp(`/ipfs/${hash}`, dir)

const node = await daemon.api.object.get(hash)
const meta = UnixFs.unmarshal(node.data)
const meta = UnixFs.unmarshal(node.Data)

expect(meta.type).to.equal('hamt-sharded-directory')

Expand All @@ -402,7 +402,7 @@ describe('files', function () {

const stats = await daemon.api.files.stat(dir)
const nodeAfterUpdates = await daemon.api.object.get(stats.hash)
const metaAfterUpdates = UnixFs.unmarshal(nodeAfterUpdates.data)
const metaAfterUpdates = UnixFs.unmarshal(nodeAfterUpdates.Data)

expect(metaAfterUpdates.type).to.equal('hamt-sharded-directory')

Expand Down
2 changes: 1 addition & 1 deletion test/node.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-env mocha */
'use strict'

require('./ipns-pubsub')
require('./cid-version-agnostic')
require('./pubsub')
require('./circuit')
Expand All @@ -10,4 +11,3 @@ require('./ipns')
require('./kad-dht')
require('./pin')
require('./files')
require('./ipns-pubsub')

0 comments on commit ce1b80e

Please sign in to comment.