From 7e01554b9c54db5627dd30c749046b4c4d419603 Mon Sep 17 00:00:00 2001 From: tanzhenxin Date: Fri, 15 Aug 2025 17:27:09 +0800 Subject: [PATCH] chore: fix test case failure --- packages/core/src/tools/web-fetch.test.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/core/src/tools/web-fetch.test.ts b/packages/core/src/tools/web-fetch.test.ts index 0f42b313..1b82e726 100644 --- a/packages/core/src/tools/web-fetch.test.ts +++ b/packages/core/src/tools/web-fetch.test.ts @@ -35,7 +35,7 @@ describe('WebFetchTool', () => { }); }); - it('should convert github urls to raw format', async () => { + it('should return github urls as-is in confirmation details', async () => { const tool = new WebFetchTool(mockConfig); const params = { url: 'https://github.com/google/gemini-react/blob/main/README.md', @@ -48,9 +48,7 @@ describe('WebFetchTool', () => { title: 'Confirm Web Fetch', prompt: 'Fetch content from https://github.com/google/gemini-react/blob/main/README.md and process with: summarize the README', - urls: [ - 'https://raw.githubusercontent.com/google/gemini-react/main/README.md', - ], + urls: ['https://github.com/google/gemini-react/blob/main/README.md'], onConfirm: expect.any(Function), }); });