mirror of
https://github.com/fluencelabs/js-libp2p-websockets
synced 2025-06-22 00:21:50 +00:00
* Fix #70 - Better error for .createServer in browser * Add test for throw * Make test sync
This commit is contained in:
committed by
David Dias
parent
887dc13742
commit
9ffe03adf6
@ -75,3 +75,7 @@ describe('libp2p-websockets', () => {
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
it('.createServer throws in browser', () => {
|
||||
expect(new WS().createListener).to.throw()
|
||||
})
|
||||
|
Reference in New Issue
Block a user