mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-13 07:30:52 -07:00
feat: Detect background color (#15132)
This commit is contained in:
@@ -39,6 +39,14 @@ vi.mock('node:process', () => ({
|
||||
},
|
||||
}));
|
||||
|
||||
vi.mock('../utils/terminalCapabilityManager.js', () => ({
|
||||
terminalCapabilityManager: {
|
||||
getTerminalName: vi.fn().mockReturnValue('Test Terminal'),
|
||||
getTerminalBackgroundColor: vi.fn().mockReturnValue('#000000'),
|
||||
isKittyProtocolEnabled: vi.fn().mockReturnValue(true),
|
||||
},
|
||||
}));
|
||||
|
||||
describe('bugCommand', () => {
|
||||
beforeEach(() => {
|
||||
vi.mocked(getVersion).mockResolvedValue('0.1.0');
|
||||
@@ -73,6 +81,9 @@ describe('bugCommand', () => {
|
||||
* **Sandbox Environment:** test
|
||||
* **Model Version:** gemini-pro
|
||||
* **Memory Usage:** 100 MB
|
||||
* **Terminal Name:** Test Terminal
|
||||
* **Terminal Background:** #000000
|
||||
* **Kitty Keyboard Protocol:** Supported
|
||||
* **IDE Client:** VSCode
|
||||
`;
|
||||
const expectedUrl =
|
||||
@@ -106,6 +117,9 @@ describe('bugCommand', () => {
|
||||
* **Sandbox Environment:** test
|
||||
* **Model Version:** gemini-pro
|
||||
* **Memory Usage:** 100 MB
|
||||
* **Terminal Name:** Test Terminal
|
||||
* **Terminal Background:** #000000
|
||||
* **Kitty Keyboard Protocol:** Supported
|
||||
* **IDE Client:** VSCode
|
||||
`;
|
||||
const expectedUrl = customTemplate
|
||||
|
||||
Reference in New Issue
Block a user