chore: update erroneous model version added by external contrib (#8624)

This commit is contained in:
Jack Wotherspoon
2025-09-17 10:10:58 -04:00
committed by GitHub
parent 0403375799
commit bbf7c6ed36

View File

@@ -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();