fix: correct toolUseId property name in export test

This commit is contained in:
Nicolas Varrot
2026-02-15 22:02:26 +00:00
parent 08842d1b3a
commit da75ac3ccc

View File

@@ -60,7 +60,7 @@ describe('exportAsMarkdown', () => {
it('renders tool_result blocks truncated', () => {
const longContent = 'x'.repeat(3000);
const msgs = [
makeMsg('assistant', '', [{ type: 'tool_result', content: longContent, tool_use_id: 't1' }]),
makeMsg('assistant', '', [{ type: 'tool_result', content: longContent, toolUseId: 't1' }]),
];
const md = exportAsMarkdown(msgs);
expect(md).toContain('**📋 Result:**');