socket.test.ts 431 B

1234567891011121314
  1. // import { receiverConnectionState } from './socket'
  2. // test('should simulate client connectivity', () => {
  3. // const expectedValues = ['OFFLINE', 'ONLINE', 'OFFLINE', 'ONLINE'];
  4. // let index = 0;
  5. // receiverConnectionState.subscribe({
  6. // next: (value) => {
  7. // expect(value).toBe(expectedValues[index++])
  8. // },
  9. // complete() {
  10. // // nothing
  11. // },
  12. // })
  13. // })