
























@@ -451,6 +451,35 @@ describe("google-meet plugin", () => {
451451expect(result.details.ok).toBe(true);
452452});
453453454+it("fails setup status when the configured Chrome node is not connected", async () => {
455+const { tools } = setup(
456+{
457+defaultTransport: "chrome-node",
458+chromeNode: { node: "parallels-macos" },
459+},
460+{ nodesListResult: { nodes: [] } },
461+);
462+const tool = tools[0] as {
463+execute: (
464+id: string,
465+params: unknown,
466+) => Promise<{ details: { ok?: boolean; checks?: unknown[] } }>;
467+};
468+469+const result = await tool.execute("id", { action: "setup_status" });
470+471+expect(result.details.ok).toBe(false);
472+expect(result.details.checks).toEqual(
473+expect.arrayContaining([
474+expect.objectContaining({
475+id: "chrome-node-connected",
476+ok: false,
477+message: expect.stringContaining("No connected Google Meet-capable node"),
478+}),
479+]),
480+);
481+});
482+454483it("reports Twilio delegation readiness when voice-call is enabled", async () => {
455484vi.stubEnv("TWILIO_ACCOUNT_SID", "AC123");
456485vi.stubEnv("TWILIO_AUTH_TOKEN", "secret");
@@ -547,7 +576,7 @@ describe("google-meet plugin", () => {
547576config: resolveGoogleMeetConfig({}),
548577ensureRuntime: async () =>
549578({
550-setupStatus: () => ({
579+setupStatus: async () => ({
551580ok: true,
552581checks: [
553582{
@@ -557,7 +586,7 @@ describe("google-meet plugin", () => {
557586},
558587],
559588}),
560-}) as GoogleMeetRuntime,
589+}) as unknown as GoogleMeetRuntime,
561590});
562591563592try {
@@ -580,11 +609,11 @@ describe("google-meet plugin", () => {
580609config: resolveGoogleMeetConfig({}),
581610ensureRuntime: async () =>
582611({
583-setupStatus: () => ({
612+setupStatus: async () => ({
584613ok: false,
585614checks: [{ id: "twilio-voice-call-plugin", ok: false, message: "missing" }],
586615}),
587-}) as GoogleMeetRuntime,
616+}) as unknown as GoogleMeetRuntime,
588617});
589618590619try {
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。