From da50a1eefbd0751aaf137882595d500e6b6b4179 Mon Sep 17 00:00:00 2001 From: christine betts Date: Wed, 9 Jul 2025 21:16:42 +0000 Subject: Add system-wide settings config for administrators (#3498) Co-authored-by: Jack Wotherspoon --- packages/cli/src/ui/components/AuthDialog.test.tsx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'packages/cli/src/ui/components/AuthDialog.test.tsx') diff --git a/packages/cli/src/ui/components/AuthDialog.test.tsx b/packages/cli/src/ui/components/AuthDialog.test.tsx index 60a8a930..d9f1bd2c 100644 --- a/packages/cli/src/ui/components/AuthDialog.test.tsx +++ b/packages/cli/src/ui/components/AuthDialog.test.tsx @@ -29,6 +29,10 @@ describe('AuthDialog', () => { process.env.GEMINI_API_KEY = ''; const settings: LoadedSettings = new LoadedSettings( + { + settings: {}, + path: '', + }, { settings: { selectedAuthType: AuthType.USE_GEMINI, @@ -86,6 +90,12 @@ describe('AuthDialog', () => { settings: {}, path: '', }, + { + settings: { + selectedAuthType: undefined, + }, + path: '', + }, { settings: {}, path: '', @@ -147,6 +157,10 @@ describe('AuthDialog', () => { it('should allow exiting when auth method is already selected', async () => { const onSelect = vi.fn(); const settings: LoadedSettings = new LoadedSettings( + { + settings: {}, + path: '', + }, { settings: { selectedAuthType: AuthType.USE_GEMINI, -- cgit v1.2.3