mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-18 01:51:20 -07:00
fix(cli): update remaining test mocks for consistent semantic-colors
This commit is contained in:
@@ -22,8 +22,13 @@ vi.mock('../semantic-colors.js', async (importOriginal) => {
|
||||
...original,
|
||||
theme: {
|
||||
...original.theme,
|
||||
background: {
|
||||
...original.theme.background,
|
||||
focus: '#004000',
|
||||
},
|
||||
ui: {
|
||||
...original.theme.ui,
|
||||
focus: '#00ff00',
|
||||
gradient: [], // Empty array to potentially trigger the crash
|
||||
},
|
||||
},
|
||||
|
||||
@@ -13,6 +13,10 @@ vi.mock('../semantic-colors.js', () => ({
|
||||
theme: {
|
||||
ui: {
|
||||
gradient: ['red', 'blue'],
|
||||
focus: 'green',
|
||||
},
|
||||
background: {
|
||||
focus: 'darkgreen',
|
||||
},
|
||||
text: {
|
||||
accent: 'cyan',
|
||||
|
||||
@@ -27,6 +27,8 @@ vi.mock('./BaseSelectionList.js', () => ({
|
||||
vi.mock('../../semantic-colors.js', () => ({
|
||||
theme: {
|
||||
text: { secondary: 'COLOR_SECONDARY' },
|
||||
ui: { focus: 'COLOR_FOCUS' },
|
||||
background: { focus: 'COLOR_FOCUS_BG' },
|
||||
},
|
||||
}));
|
||||
|
||||
|
||||
@@ -29,6 +29,9 @@ vi.mock('../semantic-colors.js', () => ({
|
||||
status: {
|
||||
warning: 'mock-warning-color',
|
||||
},
|
||||
ui: {
|
||||
focus: 'mock-focus-color',
|
||||
},
|
||||
},
|
||||
}));
|
||||
|
||||
|
||||
@@ -17,6 +17,9 @@ vi.mock('../semantic-colors.js', () => ({
|
||||
accent: 'cyan',
|
||||
link: 'blue',
|
||||
},
|
||||
ui: {
|
||||
focus: 'green',
|
||||
},
|
||||
},
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user