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

Commit 4c50f94

Browse files
author
Alan Shaw
committed
refactor: swarm tests
1 parent 6ed431c commit 4c50f94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/node/swarm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('.swarm.peers', function () {
2525
expect(res.length).to.equal(1)
2626
expect(res[0].error).to.not.exist()
2727
expect(res[0].addr.toString()).to.equal(response.Peers[0].Addr)
28-
expect(res[0].peer.toB58String()).to.equal(response.Peers[0].Peer)
28+
expect(res[0].peer.toString()).to.equal(response.Peers[0].Peer)
2929
expect(scope.isDone()).to.equal(true)
3030
})
3131

@@ -43,7 +43,7 @@ describe('.swarm.peers', function () {
4343
expect(res.length).to.equal(1)
4444
expect(res[0].error).to.not.exist()
4545
expect(res[0].addr.toString()).to.equal(response.Peers[0].Addr)
46-
expect(res[0].peer.toB58String()).to.equal(response.Peers[0].Peer)
46+
expect(res[0].peer.toString()).to.equal(response.Peers[0].Peer)
4747
expect(scope.isDone()).to.equal(true)
4848
})
4949

0 commit comments

Comments
 (0)