chore: Fix types in tests 24/N.

This commit is contained in:
cpojer
2026-02-17 14:30:36 +09:00
parent be5b28cd6b
commit 600022cdcc
11 changed files with 65 additions and 26 deletions

View File

@@ -49,7 +49,7 @@ describe("registerTelegramNativeCommands (plugin auth)", () => {
registerTelegramNativeCommands({
bot: bot as unknown as Parameters<typeof registerTelegramNativeCommands>[0]["bot"],
cfg: {} as OpenClawConfig,
runtime: { log } as RuntimeEnv,
runtime: { log } as unknown as RuntimeEnv,
accountId: "default",
telegramCfg: {} as TelegramAccountConfig,
allowFrom: [],
@@ -112,7 +112,7 @@ describe("registerTelegramNativeCommands (plugin auth)", () => {
registerTelegramNativeCommands({
bot: bot as unknown as Parameters<typeof registerTelegramNativeCommands>[0]["bot"],
cfg,
runtime: {} as RuntimeEnv,
runtime: {} as unknown as RuntimeEnv,
accountId: "default",
telegramCfg,
allowFrom: ["999"],