Skip to content

Commit

Permalink
chore: rename isEqual to equals in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Jul 15, 2020
1 parent 427b904 commit 44aef5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/peer-store/address-book.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ describe('addressBook', () => {

// Validate stored envelope
const storedEnvelope = await ab.getPeerRecord(peerId)
expect(envelope.isEqual(storedEnvelope)).to.eql(true)
expect(envelope.equals(storedEnvelope)).to.eql(true)

// Validate AddressBook addresses
const addrs = ab.get(peerId)
Expand Down
4 changes: 2 additions & 2 deletions test/peer-store/persisted-peer-store.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,10 @@ describe('Persisted PeerStore', () => {

// Validate stored envelopes
const storedEnvelope0 = await peerStore.addressBook.getPeerRecord(peers[0])
expect(envelope0.isEqual(storedEnvelope0)).to.eql(true)
expect(envelope0.equals(storedEnvelope0)).to.eql(true)

const storedEnvelope1 = await peerStore.addressBook.getPeerRecord(peers[1])
expect(envelope1.isEqual(storedEnvelope1)).to.eql(true)
expect(envelope1.equals(storedEnvelope1)).to.eql(true)

// Validate multiaddrs
const storedPeer0 = peerStore.get(peers[0])
Expand Down

0 comments on commit 44aef5b

Please sign in to comment.