feat: support peer-id instances in peer store operations (#491)

This commit is contained in:
Vasco Santos
2019-12-02 18:13:14 +01:00
committed by Jacob Heun
parent a020db183a
commit 8da9fc97d4
2 changed files with 21 additions and 5 deletions

View File

@ -138,7 +138,7 @@ describe('peer-store', () => {
it('should be able to retrieve a peer from store through its b58str id', async () => {
const [peerInfo] = await peerUtils.createPeerInfo()
const id = peerInfo.id.toB58String()
const id = peerInfo.id
let retrievedPeer = peerStore.get(id)
expect(retrievedPeer).to.not.exist()
@ -155,7 +155,7 @@ describe('peer-store', () => {
it('should be able to remove a peer from store through its b58str id', async () => {
const [peerInfo] = await peerUtils.createPeerInfo()
const id = peerInfo.id.toB58String()
const id = peerInfo.id
let removed = peerStore.remove(id)
expect(removed).to.eql(false)