Add User email detail to about box (#13459)

This commit is contained in:
Preston Holmes
2025-11-19 19:46:21 -08:00
committed by GitHub
parent 2231497b1f
commit 43d6dc3668
6 changed files with 35 additions and 1 deletions

View File

@@ -22,6 +22,9 @@ vi.mock('@google/gemini-cli-core', async (importOriginal) => {
getDetectedIdeDisplayName: vi.fn().mockReturnValue('test-ide'),
}),
},
UserAccountManager: vi.fn().mockImplementation(() => ({
getCachedGoogleAccount: vi.fn().mockReturnValue('test-email@example.com'),
})),
};
});
@@ -98,6 +101,7 @@ describe('aboutCommand', () => {
selectedAuthType: 'test-auth',
gcpProject: 'test-gcp-project',
ideClient: 'test-ide',
userEmail: 'test-email@example.com',
},
expect.any(Number),
);