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

Commit 087bf01

Browse files
committed
chore: update responses
1 parent 4dc4b3c commit 087bf01

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

js/src/dht/findpeer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ module.exports = (createCommon, options) => {
4040
it('should find other peers', (done) => {
4141
nodeA.dht.findpeer(nodeB.peerId.id, (err, res) => {
4242
expect(err).to.not.exist()
43-
expect(res.Responses[0].Addrs).to.deep.include(nodeB.peerId.addresses[0])
43+
expect(res.responses[0].id).to.be.eql(nodeB.peerId.id)
44+
expect(res.responses[0].addrs).to.deep.include(nodeB.peerId.addresses[0])
4445
done()
4546
})
4647
})

js/src/dht/findprovs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module.exports = (createCommon, options) => {
6060
},
6161
(cidV0, cb) => nodeA.dht.findprovs(cidV0, cb),
6262
(provs, cb) => {
63-
expect(provs.Responses.map((p) => p.ID))
63+
expect(provs.responses.map((p) => p.id))
6464
.to.eql([nodeB.peerId.id])
6565
cb()
6666
}

0 commit comments

Comments
 (0)