summaryrefslogtreecommitdiff
path: root/packages/core/src/code_assist/oauth2.test.ts
diff options
context:
space:
mode:
authorMarat Boshernitsan <[email protected]>2025-07-21 16:23:28 -0700
committerGitHub <[email protected]>2025-07-21 23:23:28 +0000
commit5066bc538431482d3e44d1d932909e5a5bc6e69d (patch)
tree9764872215257449486dc84c559f67ca307b6e9b /packages/core/src/code_assist/oauth2.test.ts
parent97cf26ec5301f7b4552a5e89214a13e4b714b9eb (diff)
Refactor the logic for deciding whether to launch a browser into config (#4622)
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 8a1af056..ee63c02b 100644
--- a/packages/core/src/code_assist/oauth2.test.ts
+++ b/packages/core/src/code_assist/oauth2.test.ts
@@ -38,6 +38,7 @@ vi.mock('../utils/browser.js', () => ({
const mockConfig = {
getNoBrowser: () => false,
getProxy: () => 'http://test.proxy.com:8080',
+ isBrowserLaunchSuppressed: () => false,
} as unknown as Config;
// Mock fetch globally
@@ -180,6 +181,7 @@ describe('oauth2', () => {
const mockConfigWithNoBrowser = {
getNoBrowser: () => true,
getProxy: () => 'http://test.proxy.com:8080',
+ isBrowserLaunchSuppressed: () => true,
} as unknown as Config;
const mockCodeVerifier = {