Skip to content

Commit ead14e5

Browse files
committed
Update test expectation to confirm extraction of embedded markdown code blocks surrounded by text
1 parent 9a530bb commit ead14e5

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,9 @@ describe('cleanup_api_response', () => {
6464
expect(cleanup_api_response({ content })).toBe('')
6565
})
6666

67-
it('should not remove wrappers from the middle of the content', () => {
67+
it('should extract content from a code block surrounded by text', () => {
6868
const content = 'Some text\n```\ncode\n```\nSome other text'
69-
expect(cleanup_api_response({ content })).toBe(
70-
'Some text\n```\ncode\n```\nSome other text'
71-
)
69+
expect(cleanup_api_response({ content })).toBe('code')
7270
})
7371
})
7472

0 commit comments

Comments
 (0)