Skip to content

Commit

Permalink
fix: Remove (s) in p2p-websockets-star (#46)
Browse files Browse the repository at this point in the history
* Remove s in p2p-websockets-star

* Fix tests
  • Loading branch information
mkg20001 authored and daviddias committed Sep 5, 2017
1 parent 831e592 commit b6a613e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@
"greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>",
"npm-to-cdn-bot (by Forbes Lindesay) <npmcdn-to-unpkg-bot@users.noreply.github.com>"
]
}
}
2 changes: 1 addition & 1 deletion src/protocols-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Protocols.table = [
[443, 0, 'https'],
[477, 0, 'ws'],
[478, 0, 'wss'],
[479, 0, 'p2p-websockets-star'],
[479, 0, 'p2p-websocket-star'],
[275, 0, 'p2p-webrtc-star'],
[276, 0, 'p2p-webrtc-direct'],
[290, 0, 'p2p-circuit']
Expand Down
4 changes: 2 additions & 2 deletions test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ describe('variants', () => {
expect(addr.toString()).to.equal(str)
})

it('p2p-websockets-star', () => {
const str = '/ip4/127.0.0.1/tcp/9090/ws/p2p-websockets-star'
it('p2p-websocket-star', () => {
const str = '/ip4/127.0.0.1/tcp/9090/ws/p2p-websocket-star'
const addr = multiaddr(str)
expect(addr).to.have.property('buffer')
expect(addr.toString()).to.equal(str)
Expand Down

0 comments on commit b6a613e

Please sign in to comment.