Commit 107c994
committed
test(tools): add comprehensive unit tests for AskFollowupQuestionTool
- Add 36 unit tests covering execute(), handlePartial(), and error paths
- Fix undefined text handling: use safeText = text ?? "" to prevent literal 'undefined' in user_message output
- Add NativeToolCallParser integration tests for streaming ask_followup_question tool calls
- Address review feedback: fix undefined assertion and improve empty string comment clarity1 parent b761a0a commit 107c994
2 files changed
Lines changed: 454 additions & 248 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
0 commit comments