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

chore: update dependencies #73

Merged
merged 1 commit into from
Jun 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vmx this looks like an API breaking change. Was it treated like so?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


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')