chore: fix test case failure
This commit is contained in:
parent
36c65658ff
commit
7e01554b9c
1 changed files with 2 additions and 4 deletions
|
|
@ -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 tool = new WebFetchTool(mockConfig);
|
||||||
const params = {
|
const params = {
|
||||||
url: 'https://github.com/google/gemini-react/blob/main/README.md',
|
url: 'https://github.com/google/gemini-react/blob/main/README.md',
|
||||||
|
|
@ -48,9 +48,7 @@ describe('WebFetchTool', () => {
|
||||||
title: 'Confirm Web Fetch',
|
title: 'Confirm Web Fetch',
|
||||||
prompt:
|
prompt:
|
||||||
'Fetch content from https://github.com/google/gemini-react/blob/main/README.md and process with: summarize the README',
|
'Fetch content from https://github.com/google/gemini-react/blob/main/README.md and process with: summarize the README',
|
||||||
urls: [
|
urls: ['https://github.com/google/gemini-react/blob/main/README.md'],
|
||||||
'https://raw.githubusercontent.com/google/gemini-react/main/README.md',
|
|
||||||
],
|
|
||||||
onConfirm: expect.any(Function),
|
onConfirm: expect.any(Function),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue