mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
fix test error for wrong arguments after additional base url added
This commit is contained in:
parent
a3a5592654
commit
9d0b824b90
1 changed files with 17 additions and 7 deletions
|
|
@ -101,10 +101,15 @@ describe("GeminiHandler", () => {
|
|||
})
|
||||
|
||||
// Verify the model configuration
|
||||
expect(mockGetGenerativeModel).toHaveBeenCalledWith({
|
||||
model: "gemini-2.0-flash-thinking-exp-1219",
|
||||
systemInstruction: systemPrompt,
|
||||
})
|
||||
expect(mockGetGenerativeModel).toHaveBeenCalledWith(
|
||||
{
|
||||
model: "gemini-2.0-flash-thinking-exp-1219",
|
||||
systemInstruction: systemPrompt,
|
||||
},
|
||||
{
|
||||
baseUrl: undefined,
|
||||
},
|
||||
)
|
||||
|
||||
// Verify generation config
|
||||
expect(mockGenerateContentStream).toHaveBeenCalledWith(
|
||||
|
|
@ -149,9 +154,14 @@ describe("GeminiHandler", () => {
|
|||
|
||||
const result = await handler.completePrompt("Test prompt")
|
||||
expect(result).toBe("Test response")
|
||||
expect(mockGetGenerativeModel).toHaveBeenCalledWith({
|
||||
model: "gemini-2.0-flash-thinking-exp-1219",
|
||||
})
|
||||
expect(mockGetGenerativeModel).toHaveBeenCalledWith(
|
||||
{
|
||||
model: "gemini-2.0-flash-thinking-exp-1219",
|
||||
},
|
||||
{
|
||||
baseUrl: undefined,
|
||||
},
|
||||
)
|
||||
expect(mockGenerateContent).toHaveBeenCalledWith({
|
||||
contents: [{ role: "user", parts: [{ text: "Test prompt" }] }],
|
||||
generationConfig: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue