mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-26 04:54:25 -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');
|
fs.writeFileSync(testFilePath, originalContent, 'utf-8');
|
||||||
|
|
||||||
updateSettingsFilePreservingFormat(testFilePath, {
|
updateSettingsFilePreservingFormat(testFilePath, {
|
||||||
model: 'gemini-3.0-ultra',
|
model: 'gemini-2.5-flash',
|
||||||
});
|
});
|
||||||
|
|
||||||
const updatedContent = fs.readFileSync(testFilePath, 'utf-8');
|
const updatedContent = fs.readFileSync(testFilePath, 'utf-8');
|
||||||
|
|
||||||
expect(updatedContent).toContain('// Model configuration');
|
expect(updatedContent).toContain('// Model configuration');
|
||||||
expect(updatedContent).toContain('// Theme setting');
|
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"');
|
expect(updatedContent).toContain('"theme": "dark"');
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -119,7 +119,7 @@ describe('commentJson', () => {
|
|||||||
fs.writeFileSync(testFilePath, complexContent, 'utf-8');
|
fs.writeFileSync(testFilePath, complexContent, 'utf-8');
|
||||||
|
|
||||||
updateSettingsFilePreservingFormat(testFilePath, {
|
updateSettingsFilePreservingFormat(testFilePath, {
|
||||||
model: 'gemini-3.0-ultra',
|
model: 'gemini-2.5-flash',
|
||||||
mcpServers: {
|
mcpServers: {
|
||||||
context7: {
|
context7: {
|
||||||
headers: {
|
headers: {
|
||||||
@@ -140,7 +140,7 @@ describe('commentJson', () => {
|
|||||||
expect(updatedContent).toContain('// API key');
|
expect(updatedContent).toContain('// API key');
|
||||||
|
|
||||||
// Verify updates applied
|
// 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('"newSection"');
|
||||||
expect(updatedContent).toContain('"API_KEY": "new-test-key"');
|
expect(updatedContent).toContain('"API_KEY": "new-test-key"');
|
||||||
});
|
});
|
||||||
@@ -161,7 +161,7 @@ describe('commentJson', () => {
|
|||||||
|
|
||||||
expect(() => {
|
expect(() => {
|
||||||
updateSettingsFilePreservingFormat(testFilePath, {
|
updateSettingsFilePreservingFormat(testFilePath, {
|
||||||
model: 'gemini-3.0-ultra',
|
model: 'gemini-2.5-flash',
|
||||||
});
|
});
|
||||||
}).not.toThrow();
|
}).not.toThrow();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user