()
| 70 | } |
| 71 | |
| 72 | function createThrowingWebSocketClass() { |
| 73 | return class ThrowingWebSocket { |
| 74 | static OPEN = 1 |
| 75 | static CLOSED = 3 |
| 76 | constructor() { |
| 77 | throw new Error('WS not available') |
| 78 | } |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | describe('ClientEventBus', () => { |
| 83 | beforeEach(() => { |