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

Commit

Permalink
feat(config): not pick a protected value for config test
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Aug 25, 2016
1 parent 7f2a0ca commit 9f1aebf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "interface-ipfs-core",
"version": "0.14.0",
"description": "A test suite and interface you can use to implement a IPFS core interface.",
"main": "lib/index.js",
"main": "src/index.js",
"jsnext:main": "src/index.js",
"scripts": {
"test": "exit(0)",
Expand Down Expand Up @@ -50,4 +50,4 @@
"greenkeeperio-bot <support@greenkeeper.io>",
"nginnever <ginneversource@gmail.com>"
]
}
}
4 changes: 2 additions & 2 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ module.exports = (common) => {
})

it('retrieve a value through a key', (done) => {
ipfs.config.get('Identity', (err, identity) => {
ipfs.config.get('Identity.PeerID', (err, peerId) => {
expect(err).to.not.exist
expect(identity).to.exist
expect(peerId).to.exist
done()
})
})
Expand Down
1 change: 1 addition & 0 deletions src/swarm.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ module.exports = (common) => {
it('.connect', (done) => {
ipfsB.id((err, id) => {
expect(err).to.not.exist
console.log('-> id:', id)
const ipfsBAddr = id.addresses[0]
ipfsA.swarm.connect(ipfsBAddr, done)
})
Expand Down

0 comments on commit 9f1aebf

Please sign in to comment.