mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-11 14:40:52 -07:00
chore: update erroneous model version added by external contrib (#8624)
This commit is contained in:
@@ -41,14 +41,14 @@ describe('commentJson', () => {
|
||||
fs.writeFileSync(testFilePath, originalContent, 'utf-8');
|
||||
|
||||
updateSettingsFilePreservingFormat(testFilePath, {
|
||||
model: 'gemini-3.0-ultra',
|
||||
model: 'gemini-2.5-flash',
|
||||
});
|
||||
|
||||
const updatedContent = fs.readFileSync(testFilePath, 'utf-8');
|
||||
|
||||
expect(updatedContent).toContain('// Model configuration');
|
||||
expect(updatedContent).toContain('// Theme setting');
|
||||
expect(updatedContent).toContain('"model": "gemini-3.0-ultra"');
|
||||
expect(updatedContent).toContain('"model": "gemini-2.5-flash"');
|
||||
expect(updatedContent).toContain('"theme": "dark"');
|
||||
});
|
||||
|
||||
@@ -119,7 +119,7 @@ describe('commentJson', () => {
|
||||
fs.writeFileSync(testFilePath, complexContent, 'utf-8');
|
||||
|
||||
updateSettingsFilePreservingFormat(testFilePath, {
|
||||
model: 'gemini-3.0-ultra',
|
||||
model: 'gemini-2.5-flash',
|
||||
mcpServers: {
|
||||
context7: {
|
||||
headers: {
|
||||
@@ -140,7 +140,7 @@ describe('commentJson', () => {
|
||||
expect(updatedContent).toContain('// API key');
|
||||
|
||||
// Verify updates applied
|
||||
expect(updatedContent).toContain('"model": "gemini-3.0-ultra"');
|
||||
expect(updatedContent).toContain('"model": "gemini-2.5-flash"');
|
||||
expect(updatedContent).toContain('"newSection"');
|
||||
expect(updatedContent).toContain('"API_KEY": "new-test-key"');
|
||||
});
|
||||
@@ -161,7 +161,7 @@ describe('commentJson', () => {
|
||||
|
||||
expect(() => {
|
||||
updateSettingsFilePreservingFormat(testFilePath, {
|
||||
model: 'gemini-3.0-ultra',
|
||||
model: 'gemini-2.5-flash',
|
||||
});
|
||||
}).not.toThrow();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user