Commit dacc2d4
authored
test(tools): add comprehensive unit tests for AskFollowupQuestionTool (#212)
* 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 clarity
* fix(tests): address roomote review - guard against undefined in pushToolResult and nest NativeToolCallParser tests
- Add assertion verifying pushToolResult argument does not contain 'undefined'
- Move NativeToolCallParser integration tests into main describe block for better organization
* test(askFollowupQuestion): drop test subsumed by the comprehensive undefined-text case
---------
Co-authored-by: Armando Vaquera <263793884+proyectoauraorg@users.noreply.github.com>1 parent 59b035f commit dacc2d4
2 files changed
Lines changed: 401 additions & 195 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