Skip to content

Commit

Permalink
chore: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Nov 28, 2019
1 parent c9f694c commit be9e79f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/core/listening.node.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ describe('Listening', () => {

await libp2p.start()

const addrs = libp2p.peerInfo.multiaddrs.toArray().sort((a, b) => a < b ? -1 : 1)
const addrs = libp2p.peerInfo.multiaddrs.toArray()

// Should get something like:
// /ip4/127.0.0.1/tcp/50866
// /ip4/192.168.1.2/tcp/50866
Expand All @@ -48,7 +48,7 @@ describe('Listening', () => {
expect(opts[1].family).to.equal('ipv4')
expect(opts[0].transport).to.equal('tcp')
expect(opts[1].transport).to.equal('tcp')
expect(opts[0].host).to.equal('127.0.0.1')
expect(opts[0].host).to.match(/[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/)
expect(opts[1].host).to.match(/[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/)
expect(opts[0].port).to.be.gt(0)
expect(opts[1].port).to.be.gt(0)
Expand Down

0 comments on commit be9e79f

Please sign in to comment.