test(trajectory): omit absent optional fixture fields
This commit is contained in:
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,
|
||||
}],
|
||||
}],
|
||||
|
||||
Reference in new issue
Block a user