Skip to content

Commit

Permalink
tests fix: escaping resulting address match
Browse files Browse the repository at this point in the history
  • Loading branch information
pgte committed Dec 1, 2017
1 parent 5936229 commit ee65d2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/multiaddr-trim.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('multiaddr trim', () => {

it('irrelevant multiaddr got trimmed', (done) => {
expect(node.peerInfo.multiaddrs.toArray()).to.have.length(1)
expect(node.peerInfo.multiaddrs.toArray()[0].toString()).to.match(/^\/ip4\/0.0.0.0\/tcp\/0\/ipfs\/\w+/)
expect(node.peerInfo.multiaddrs.toArray()[0].toString()).to.match(/^\/ip4\/0\.0\.0\.0\/tcp\/0\/ipfs\/\w+/)
done()
})
})

0 comments on commit ee65d2f

Please sign in to comment.