mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 14:54:31 +00:00
chore: Fix types in tests 24/N.
This commit is contained in:
@@ -26,7 +26,13 @@ const loadConfig = getLoadConfigMock();
|
||||
const readChannelAllowFromStore = getReadChannelAllowFromStoreMock();
|
||||
|
||||
function resolveSkillCommands(config: Parameters<typeof listNativeCommandSpecsForConfig>[0]) {
|
||||
return listSkillCommandsForAgents({ cfg: config });
|
||||
return (
|
||||
listSkillCommandsForAgents as unknown as (params: {
|
||||
cfg: typeof config;
|
||||
}) => Parameters<typeof listNativeCommandSpecsForConfig>[1]["skillCommands"]
|
||||
)({
|
||||
cfg: config,
|
||||
});
|
||||
}
|
||||
|
||||
const ORIGINAL_TZ = process.env.TZ;
|
||||
@@ -1111,7 +1117,10 @@ describe("createTelegramBot", () => {
|
||||
}),
|
||||
);
|
||||
// Verify session key does NOT contain :topic:
|
||||
const sessionKey = enqueueSystemEventSpy.mock.calls[0][1].sessionKey;
|
||||
const eventOptions = enqueueSystemEventSpy.mock.calls[0]?.[1] as {
|
||||
sessionKey?: string;
|
||||
};
|
||||
const sessionKey = eventOptions.sessionKey ?? "";
|
||||
expect(sessionKey).not.toContain(":topic:");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user