summaryrefslogtreecommitdiff
path: root/packages/core/src/code_assist/oauth2.test.ts
diff options
context:
space:
mode:
authorwarjiang <[email protected]>2025-07-18 02:57:37 +0800
committerGitHub <[email protected]>2025-07-17 18:57:37 +0000
commit606a7702de6659b9a46bcb9c2cbca84a1a33945d (patch)
treefe3ce39ac984876ac249e48aa9f697237a924a9f /packages/core/src/code_assist/oauth2.test.ts
parent4ca471bac63cf5f779240ca75d8efa8f9210b554 (diff)
feat(cli): add explicit proxy option in cli (#2526)
Co-authored-by: Dcatfly <[email protected]>
Diffstat (limited to 'packages/core/src/code_assist/oauth2.test.ts')
-rw-r--r--packages/core/src/code_assist/oauth2.test.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/core/src/code_assist/oauth2.test.ts b/packages/core/src/code_assist/oauth2.test.ts
index 4661f49a..7fa98e17 100644
--- a/packages/core/src/code_assist/oauth2.test.ts
+++ b/packages/core/src/code_assist/oauth2.test.ts
@@ -34,6 +34,7 @@ vi.mock('node:readline');
const mockConfig = {
getNoBrowser: () => false,
+ getProxy: () => 'http://test.proxy.com:8080',
} as unknown as Config;
// Mock fetch globally
@@ -175,6 +176,7 @@ describe('oauth2', () => {
it('should perform login with user code', async () => {
const mockConfigWithNoBrowser = {
getNoBrowser: () => true,
+ getProxy: () => 'http://test.proxy.com:8080',
} as unknown as Config;
const mockCodeVerifier = {