Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
chore: Update ipfsd-ctl to 0.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed May 3, 2016
1 parent 67034d5 commit d7aadff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"chai": "^3.5.0",
"aegir": "^3.0.1",
"gulp": "^3.9.1",
"ipfsd-ctl": "^0.11.0",
"ipfsd-ctl": "^0.13.0",
"pre-commit": "^1.1.2",
"raw-loader": "^0.5.1",
"stream-equal": "^0.1.8",
Expand Down
24 changes: 8 additions & 16 deletions test/api/object.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ describe('.object', () => {
expect(err).to.not.exist

expect(res).to.be.eql({
Hash: 'QmPTkMuuL6PD8L2SwTwbcs1NPg14U8mRzerB1ZrrBrkSDD',
Links: []
Hash: 'QmPTkMuuL6PD8L2SwTwbcs1NPg14U8mRzerB1ZrrBrkSDD'
})
done()
})
Expand All @@ -87,8 +86,7 @@ describe('.object', () => {
.addLink(testObjectHash, 'next', testPatchObjectHash, (err, res) => {
expect(err).to.not.exist
expect(res).to.be.eql({
Hash: 'QmZFdJ3CQsY4kkyQtjoUo8oAzsEs5BNguxBhp8sjQMpgkd',
Links: null
Hash: 'QmZFdJ3CQsY4kkyQtjoUo8oAzsEs5BNguxBhp8sjQMpgkd'
})
apiClients.a.object.get(res.Hash, (err, res) => {
expect(err).to.not.exist
Expand All @@ -110,8 +108,7 @@ describe('.object', () => {
.rmLink('QmZFdJ3CQsY4kkyQtjoUo8oAzsEs5BNguxBhp8sjQMpgkd', 'next', (err, res) => {
expect(err).to.not.exist
expect(res).to.be.eql({
Hash: testObjectHash,
Links: null
Hash: testObjectHash
})
apiClients.a.object.get(res.Hash, (err, res) => {
expect(err).to.not.exist
Expand All @@ -129,8 +126,7 @@ describe('.object', () => {
.appendData(testObjectHash, new Buffer(' hello'), (err, res) => {
expect(err).to.not.exist
expect(res).to.be.eql({
Hash: 'Qmcjhr2QztQxCAoEf8tJPTGTVkTsUrTQ36JurH14DNYNsc',
Links: null
Hash: 'Qmcjhr2QztQxCAoEf8tJPTGTVkTsUrTQ36JurH14DNYNsc'
})
apiClients.a.object.get(res.Hash, (err, res) => {
expect(err).to.not.exist
Expand All @@ -147,8 +143,7 @@ describe('.object', () => {
.setData(testObjectHash, new Buffer('hello world'), (err, res) => {
expect(err).to.not.exist
expect(res).to.be.eql({
Hash: 'QmU1Sq1B7RPQD2XcQNLB58qJUyJffVJqihcxmmN1STPMxf',
Links: null
Hash: 'QmU1Sq1B7RPQD2XcQNLB58qJUyJffVJqihcxmmN1STPMxf'
})
apiClients.a.object.get(res.Hash, (err, res) => {
expect(err).to.not.exist
Expand All @@ -166,8 +161,7 @@ describe('.object', () => {
apiClients.a.object.new('unixfs-dir', (err, res) => {
expect(err).to.not.exist
expect(res).to.deep.equal({
Hash: 'QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn',
Links: null
Hash: 'QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn'
})
done()
})
Expand Down Expand Up @@ -226,8 +220,7 @@ describe('.object', () => {
return apiClients.a.object.links(testObjectHash)
.then((res) => {
expect(res).to.be.eql({
Hash: 'QmPTkMuuL6PD8L2SwTwbcs1NPg14U8mRzerB1ZrrBrkSDD',
Links: []
Hash: 'QmPTkMuuL6PD8L2SwTwbcs1NPg14U8mRzerB1ZrrBrkSDD'
})
})
})
Expand All @@ -236,8 +229,7 @@ describe('.object', () => {
return apiClients.a.object.new('unixfs-dir')
.then((res) => {
expect(res).to.deep.equal({
Hash: 'QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn',
Links: null
Hash: 'QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn'
})
})
})
Expand Down

0 comments on commit d7aadff

Please sign in to comment.