Files
openclaw/extensions/voice-call/src/cli.test.ts
2026-05-03 19:02:21 +01:00

13 lines
431 B
TypeScript

import { describe, expect, it } from "vitest";
import { __testing } from "./cli.js";
describe("voice-call CLI gateway fallback", () => {
it("treats abnormal local gateway closes as standalone-runtime fallback candidates", () => {
expect(
__testing.isGatewayUnavailableForLocalFallback(
new Error("gateway closed (1006 abnormal closure (no close frame)): no close reason"),
),
).toBe(true);
});
});