Skip to content

Commit 8021465

Browse files
committed
Update test case name and files to properly test markdown block extraction in cleanup API response
1 parent cd1a549 commit 8021465

6 files changed

Lines changed: 8 additions & 1400 deletions

File tree

‎packages/vscode/src/utils/cleanup-api-response/cleanup-api-response.spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('cleanup_api_response', () => {
1818
})
1919

2020
it('should handle a complex file without modification', () => {
21-
const test_case = 'complex-file'
21+
const test_case = 'markdown-block'
2222
const content = load_test_case_file(test_case, 'input.txt')
2323
const expected = load_test_case_file(test_case, 'expected.txt')
2424
expect(cleanup_api_response({ content })).toBe(expected)

‎packages/vscode/src/utils/cleanup-api-response/cleanup-api-response.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Used by intelligent update/code completions command.
55
*/
66
export const cleanup_api_response = (params: { content: string }): string => {
7-
let content = params.content
7+
let content = params.content.trim()
88
let changed = true
99

1010
if (content.startsWith('<think>')) {

0 commit comments

Comments
 (0)