We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f23061 commit 09ed614Copy full SHA for 09ed614
ws-connection/index.test.ts
@@ -1,5 +1,5 @@
1
import { restoreAll, spyOn } from 'nanospy'
2
-import { deepStrictEqual, equal, throws } from 'node:assert'
+import { deepStrictEqual, equal } from 'node:assert'
3
import { afterEach, test } from 'node:test'
4
import type WebSocket from 'ws'
5
@@ -88,12 +88,6 @@ function emit(
88
ws.emit(name, data)
89
}
90
91
-test('throws a error on lack of WebSocket support', () => {
92
- throws(() => {
93
- new WsConnection('ws://localhost')
94
- }, /WebSocket/)
95
-})
96
-
97
test('emits error on wrong format', async () => {
98
setWebSocket(FakeWebSocket)
99
let connection = new WsConnection('ws://localhost')
0 commit comments