Skip to content

Commit 63be0b9

Browse files
committed
Fix incorrect test expectation in send-message-helpers.test.ts
The test expected questionIndex to be added to answers by transformAskUserBlocks, but the function passes answers through as-is. Fixed expectation to match actual behavior.
1 parent 6252348 commit 63be0b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1432,7 +1432,8 @@ describe('transformAskUserBlocks', () => {
14321432
})
14331433

14341434
expect(result[0].type).toBe('ask-user')
1435-
expect((result[0] as AskUserContentBlock).answers).toEqual([{ questionIndex: 0, selectedOption: 'A' }])
1435+
// Note: transformAskUserBlocks passes answers through as-is without adding questionIndex
1436+
expect((result[0] as AskUserContentBlock).answers).toEqual([{ selectedOption: 'A' }])
14361437
})
14371438

14381439
test('keeps tool block if no answers or skipped', () => {

0 commit comments

Comments
 (0)