test(trajectory): omit absent optional fixture fields

This commit is contained in:
_Kerman committed 2026-09-09 18:35:07 +08:00
1 parent 9c6b282535
commit 508490b531
1 file changed
+3 -3
@@ -247,10 +247,10 @@ describe('TrajectoryTable', () => {
kind: 'message',
text: 'private chain…',
thinkingDetail: thinking,
outputDetail,
sourceBlocks: toolCall ? [{
...(outputDetail === undefined ? {} : { outputDetail }),
...(toolCall ? { sourceBlocks: [{
type: 'tool-call', content: '{}', callId: 'call-1', toolName: 'read',
}] : undefined,
}] } : {}),
timeSeconds: 1,
}],
}],