webRemoteControlFailures.test.ts 592 B

123456789101112131415
  1. import { describe, expect, it } from "vitest";
  2. import { createWebRemoteControlConnectionRecoveryTimeoutFailure } from "@zcode/shared";
  3. describe("web remote control failures", () => {
  4. it("maps mobile connection recovery timeout without marking desktop offline", () => {
  5. const failure = createWebRemoteControlConnectionRecoveryTimeoutFailure(
  6. "Mobile connection did not recover the RPC bridge in time.",
  7. );
  8. expect(failure).toEqual({
  9. reason: "connection-recovery-timeout",
  10. message: "Mobile connection did not recover the RPC bridge in time.",
  11. });
  12. });
  13. });