MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / assertError

Function assertError

packages/agent-core/test/tools/cron/cron-create.test.ts:78–82  ·  view source on GitHub ↗
(result: ExecutableToolResult)

Source from the content-addressed store, hash-verified

76}
77
78function assertError(result: ExecutableToolResult): string {
79 expect(result.isError).toBe(true);
80 expect(typeof result.output).toBe('string');
81 return result.output as string;
82}
83
84function localIsoWithOffset(ms: number): string {
85 const date = new Date(ms);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected