(sent: unknown[])
| 15 | import { buildRcsWsUrl } from '../rcs-upstream.js' |
| 16 | |
| 17 | function makeTestWs(sent: unknown[]) { |
| 18 | type TestWs = Parameters<typeof __testing.dispatchClientMessage>[0] |
| 19 | |
| 20 | return { |
| 21 | readyState: 1, |
| 22 | send: mock((message: string) => { |
| 23 | sent.push(JSON.parse(message)) |
| 24 | }), |
| 25 | close: mock(() => {}), |
| 26 | raw: null, |
| 27 | isInner: false, |
| 28 | url: '', |
| 29 | origin: '', |
| 30 | protocol: '', |
| 31 | } as unknown as TestWs |
| 32 | } |
| 33 | |
| 34 | describe('Server HTTP endpoints', () => { |
| 35 | test('package.json has correct bin and main entries', async () => { |
no test coverage detected