Skip to content

Commit 9a9ebca

Browse files
committed
fix tests
1 parent b89e8fc commit 9a9ebca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/src/hooks/helpers/__tests__/send-message.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,8 @@ describe('handleRunError', () => {
418418
expect(aiMessage!.content).not.toContain('Partial streamed content')
419419
expect(aiMessage!.content).toContain('Out of credits')
420420

421-
// Blocks should be cleared by setError
422-
expect(aiMessage!.blocks).toBeUndefined()
421+
// Blocks should be preserved for debugging context
422+
expect(aiMessage!.blocks).toEqual([{ type: 'text', content: 'some block' }])
423423

424424
// Message should be marked complete
425425
expect(aiMessage!.isComplete).toBe(true)

0 commit comments

Comments
 (0)