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

Commit a4655dd

Browse files
committedOct 25, 2015
.swarm.peers test
1 parent fdc26a4 commit a4655dd

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed
 

‎test/test.js

+12-2
Original file line numberDiff line numberDiff line change
@@ -453,9 +453,19 @@ describe('IPFS Node.js API wrapper tests', function () {
453453
})
454454

455455
describe('.swarm', function () {
456-
it('.swarm.peers')
456+
it('.swarm.peers', function (done) {
457+
apiClients['a'].swarm.peers(function (err, res) {
458+
if (err) {
459+
throw err
460+
}
461+
462+
console.log('should have 2 nodes', res)
463+
assert(res.length >= 2)
464+
done()
465+
})
466+
})
457467
it('.swarm.connect', function (done) {
458-
// Done in the before part
468+
// Done in the 'before' segment
459469
done()
460470
})
461471
})

0 commit comments

Comments
 (0)
This repository has been archived.