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: 88d24e6b9bf5
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: 6ae3948eaf0c
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Oct 25, 2015

  1. .version and .commands

    daviddias committed Oct 25, 2015
    Copy the full SHA
    1f611e9 View commit details
  2. diag net

    daviddias committed Oct 25, 2015
    Copy the full SHA
    6ae3948 View commit details
Showing with 31 additions and 1 deletion.
  1. +31 −1 test/test.js
32 changes: 31 additions & 1 deletion test/test.js
Original file line number Diff line number Diff line change
@@ -286,16 +286,46 @@ describe('IPFS Node.js API wrapper tests', function () {
})

describe('.version', function () {
it('checks the version', function (done) {
this.timeout(10000)
apiClients['a'].version(function (err, res) {
if (err) {
throw err
}
assert(res)
done()
})
})
})

describe('.commands', function () {
it('lists commands', function (done) {
this.timeout(10000)
apiClients['a'].commands(function (err, res) {
if (err) {
throw err
}
assert(res)
done()
})
})
})

describe('.mount', function () {
// requires FUSE to be installed, not practical for testing
})

describe('.diag', function () {
it('.diag.net')
it('.diag.net', function (done) {
this.timeout(1000000)
apiClients['a'].diag.net(function (err, res) {
if (err) {
throw err
}
assert(res)
done()
})
})
})

describe('.block', function () {