chore: Fix types in tests 42/N.

This commit is contained in:
cpojer
2026-02-17 15:48:29 +09:00
parent 6264c5e842
commit 7d2ef131c1
24 changed files with 133 additions and 39 deletions

View File

@@ -1,4 +1,5 @@
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import type { OpenClawConfig } from "../config/config.js";
import { createTempHomeHarness, makeReplyConfig } from "./reply.test-harness.js";
const runEmbeddedPiAgentMock = vi.fn();
@@ -63,7 +64,7 @@ describe("getReplyFromConfig typing (heartbeat)", () => {
await getReplyFromConfig(
{ Body: "hi", From: "+1000", To: "+2000", Provider: "whatsapp" },
{ onReplyStart, isHeartbeat: false },
makeReplyConfig(home),
makeReplyConfig(home) as unknown as OpenClawConfig,
);
expect(onReplyStart).toHaveBeenCalled();
@@ -81,7 +82,7 @@ describe("getReplyFromConfig typing (heartbeat)", () => {
await getReplyFromConfig(
{ Body: "hi", From: "+1000", To: "+2000", Provider: "whatsapp" },
{ onReplyStart, isHeartbeat: true },
makeReplyConfig(home),
makeReplyConfig(home) as unknown as OpenClawConfig,
);
expect(onReplyStart).not.toHaveBeenCalled();