Skip to content

Commit d354d23

Browse files
mkg20001dryajov
authored andcommitted
fix: Remove (s) in p2p-websockets-star (multiformats#46)
* Remove s in p2p-websockets-star * Fix tests
1 parent 509b88e commit d354d23

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@
6262
"greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>",
6363
"npm-to-cdn-bot (by Forbes Lindesay) <npmcdn-to-unpkg-bot@users.noreply.github.com>"
6464
]
65-
}
65+
}

src/protocols-table.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Protocols.table = [
4141
[443, 0, 'https'],
4242
[477, 0, 'ws'],
4343
[478, 0, 'wss'],
44-
[479, 0, 'p2p-websockets-star'],
44+
[479, 0, 'p2p-websocket-star'],
4545
[275, 0, 'p2p-webrtc-star'],
4646
[276, 0, 'p2p-webrtc-direct'],
4747
[290, 0, 'p2p-circuit']

test/index.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,8 @@ describe('variants', () => {
313313
expect(addr.toString()).to.equal(str)
314314
})
315315

316-
it('p2p-websockets-star', () => {
317-
const str = '/ip4/127.0.0.1/tcp/9090/ws/p2p-websockets-star'
316+
it('p2p-websocket-star', () => {
317+
const str = '/ip4/127.0.0.1/tcp/9090/ws/p2p-websocket-star'
318318
const addr = multiaddr(str)
319319
expect(addr).to.have.property('buffer')
320320
expect(addr.toString()).to.equal(str)

0 commit comments

Comments
 (0)