Skip to content

Commit 09ed614

Browse files
committed
Remove test whch can not be passed on new Node.js
1 parent 8f23061 commit 09ed614

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

ws-connection/index.test.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { restoreAll, spyOn } from 'nanospy'
2-
import { deepStrictEqual, equal, throws } from 'node:assert'
2+
import { deepStrictEqual, equal } from 'node:assert'
33
import { afterEach, test } from 'node:test'
44
import type WebSocket from 'ws'
55

@@ -88,12 +88,6 @@ function emit(
8888
ws.emit(name, data)
8989
}
9090

91-
test('throws a error on lack of WebSocket support', () => {
92-
throws(() => {
93-
new WsConnection('ws://localhost')
94-
}, /WebSocket/)
95-
})
96-
9791
test('emits error on wrong format', async () => {
9892
setWebSocket(FakeWebSocket)
9993
let connection = new WsConnection('ws://localhost')

0 commit comments

Comments
 (0)