test: reclassify tool-result persist hook suite as unit test
This commit is contained in:
@@ -125,8 +125,10 @@ describe("tool_result_persist hook", () => {
|
||||
const toolResult = getPersistedToolResult(sm);
|
||||
expect(toolResult).toBeTruthy();
|
||||
|
||||
// Hook registration should not break baseline persistence semantics.
|
||||
expect(toolResult.details).toBeTruthy();
|
||||
// Hook registration should preserve a valid toolResult message shape.
|
||||
expect(toolResult.role).toBe("toolResult");
|
||||
expect(toolResult.toolCallId).toBe("call_1");
|
||||
expect(Array.isArray(toolResult.content)).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user