mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-14 13:53:02 -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,
|
...original,
|
||||||
theme: {
|
theme: {
|
||||||
...original.theme,
|
...original.theme,
|
||||||
|
background: {
|
||||||
|
...original.theme.background,
|
||||||
|
focus: '#004000',
|
||||||
|
},
|
||||||
ui: {
|
ui: {
|
||||||
...original.theme.ui,
|
...original.theme.ui,
|
||||||
|
focus: '#00ff00',
|
||||||
gradient: [], // Empty array to potentially trigger the crash
|
gradient: [], // Empty array to potentially trigger the crash
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -13,6 +13,10 @@ vi.mock('../semantic-colors.js', () => ({
|
|||||||
theme: {
|
theme: {
|
||||||
ui: {
|
ui: {
|
||||||
gradient: ['red', 'blue'],
|
gradient: ['red', 'blue'],
|
||||||
|
focus: 'green',
|
||||||
|
},
|
||||||
|
background: {
|
||||||
|
focus: 'darkgreen',
|
||||||
},
|
},
|
||||||
text: {
|
text: {
|
||||||
accent: 'cyan',
|
accent: 'cyan',
|
||||||
|
|||||||
@@ -27,6 +27,8 @@ vi.mock('./BaseSelectionList.js', () => ({
|
|||||||
vi.mock('../../semantic-colors.js', () => ({
|
vi.mock('../../semantic-colors.js', () => ({
|
||||||
theme: {
|
theme: {
|
||||||
text: { secondary: 'COLOR_SECONDARY' },
|
text: { secondary: 'COLOR_SECONDARY' },
|
||||||
|
ui: { focus: 'COLOR_FOCUS' },
|
||||||
|
background: { focus: 'COLOR_FOCUS_BG' },
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,9 @@ vi.mock('../semantic-colors.js', () => ({
|
|||||||
status: {
|
status: {
|
||||||
warning: 'mock-warning-color',
|
warning: 'mock-warning-color',
|
||||||
},
|
},
|
||||||
|
ui: {
|
||||||
|
focus: 'mock-focus-color',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,9 @@ vi.mock('../semantic-colors.js', () => ({
|
|||||||
accent: 'cyan',
|
accent: 'cyan',
|
||||||
link: 'blue',
|
link: 'blue',
|
||||||
},
|
},
|
||||||
|
ui: {
|
||||||
|
focus: 'green',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user