mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
Refactor the logic for deciding whether to launch a browser into config (#4622)
This commit is contained in:
committed by
GitHub
parent
97cf26ec53
commit
5066bc5384
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user