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

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ipfs-inactive/js-ipfs-http-client
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6ae3948eaf0c
Choose a base ref
...
head repository: ipfs-inactive/js-ipfs-http-client
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fdc26a458e8e
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Oct 25, 2015

  1. object.stat test

    daviddias committed Oct 25, 2015

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    f30ddea View commit details
  2. object.links

    daviddias committed Oct 25, 2015
    Copy the full SHA
    fdc26a4 View commit details
Showing with 32 additions and 2 deletions.
  1. +32 −2 test/test.js
34 changes: 32 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
@@ -418,8 +418,38 @@ describe('IPFS Node.js API wrapper tests', function () {
})
})

it('object.stat')
it('object.links')
it('object.stat', function (done) {
this.timeout(10000)
apiClients['a'].object.stat(testObjectHash, function (err, res) {
if (err) {
throw err
}
assert.deepEqual(res, {
Hash: 'QmPTkMuuL6PD8L2SwTwbcs1NPg14U8mRzerB1ZrrBrkSDD',
NumLinks: 0,
BlockSize: 10,
LinksSize: 2,
DataSize: 8,
CumulativeSize: 10
})
done()
})
})

it('object.links', function (done) {
this.timeout(10000)
apiClients['a'].object.links(testObjectHash, function (err, res) {
if (err) {
throw err
}

assert.deepEqual(res, {
Hash: 'QmPTkMuuL6PD8L2SwTwbcs1NPg14U8mRzerB1ZrrBrkSDD',
Links: []
})
done()
})
})
})

describe('.swarm', function () {