Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

test(desktop): 补齐 OpenAI 向导认证 mock

DavidShen1d10f7e950a6
diff --git a/apps/desktop/src/renderer/__tests__/addProviderWizardOpenAiAuth.test.tsx b/apps/desktop/src/renderer/__tests__/addProviderWizardOpenAiAuth.test.tsx
index bc5f4fdb84..664082ce3d 100644
--- a/apps/desktop/src/renderer/__tests__/addProviderWizardOpenAiAuth.test.tsx
+++ b/apps/desktop/src/renderer/__tests__/addProviderWizardOpenAiAuth.test.tsx
@@ -24,6 +24,7 @@ vi.mock('react-i18next', () => ({
}));
vi.mock('@/hooks/useCodexAuth', () => ({
+ isChatGptConnectionConnected: () => false,
useCodexAuth: () => ({
state: { kind: 'authenticated', authSource: 'oauth' },
triggerLogin,