()
| 11 | |
| 12 | describe('Web socket client', () => { |
| 13 | function createMockClient(): [WebSocketClient, MockWebSocket] { |
| 14 | const client = new WebSocketClient('url', (_) => new MockWebSocket()); |
| 15 | const socket = client.socket as MockWebSocket; |
| 16 | return [client, socket]; |
| 17 | } |
| 18 | |
| 19 | function openSocket(socket: MockWebSocket) { |
| 20 | if (socket.onopen !== null) |
no outgoing calls
no test coverage detected