mirror of
https://github.com/fluencelabs/js-libp2p-websockets
synced 2025-07-31 03:41:59 +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