Skip to content

Commit 0213df0

Browse files
committed
test(messages): narrow visible reply fixtures
1 parent c440ec9 commit 0213df0

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/auto-reply/reply/dispatch-from-config.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2921,7 +2921,7 @@ describe("dispatchReplyFromConfig", () => {
29212921
messages: {
29222922
groupChat: { visibleReplies: "message_tool" },
29232923
},
2924-
};
2924+
} satisfies OpenClawConfig;
29252925
const ctx = buildTestCtx({
29262926
Provider: "telegram",
29272927
Surface: "telegram",

src/commands/doctor/shared/preview-warnings.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import path from "node:path";
22
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
3+
import type { OpenClawConfig } from "../../../config/config.js";
34
import {
45
collectChannelBoundMessageToolPolicyWarnings,
56
collectDoctorPreviewWarnings,
@@ -494,7 +495,7 @@ describe("doctor preview warnings", () => {
494495
tools: {
495496
profile: "coding" as const,
496497
},
497-
};
498+
} satisfies OpenClawConfig;
498499

499500
expect(collectVisibleReplyToolPolicyWarnings(cfg)).toStrictEqual([]);
500501
expect(collectChannelBoundMessageToolPolicyWarnings(cfg)).toStrictEqual([]);
@@ -530,7 +531,7 @@ describe("doctor preview warnings", () => {
530531
},
531532
},
532533
},
533-
};
534+
} satisfies OpenClawConfig;
534535

535536
expectWarningsContaining(collectVisibleReplyToolPolicyWarnings(cfg), [
536537
'messages.groupChat.visibleReplies is set to "message_tool"',
@@ -570,7 +571,7 @@ describe("doctor preview warnings", () => {
570571
},
571572
},
572573
},
573-
};
574+
} satisfies OpenClawConfig;
574575

575576
expect(collectVisibleReplyToolPolicyWarnings(cfg)).toStrictEqual([]);
576577
expect(collectChannelBoundMessageToolPolicyWarnings(cfg)).toStrictEqual([]);

0 commit comments

Comments
 (0)