diff options
| author | Sandy Tao <[email protected]> | 2025-07-15 21:13:30 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-16 04:13:30 +0000 |
| commit | cba272082d15a6b9fb4e21bc27ed1d56fa5b9a56 (patch) | |
| tree | bd0e54879334819c823e5a892d1709066ed6618a /packages/core/src/config/config.test.ts | |
| parent | d622e596a14338771bdd43a8812ff7fc02f7ebe8 (diff) | |
Run model availability check in the background to speed up startup (#4256)
Diffstat (limited to 'packages/core/src/config/config.test.ts')
| -rw-r--r-- | packages/core/src/config/config.test.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/core/src/config/config.test.ts b/packages/core/src/config/config.test.ts index bb074a71..e34880a6 100644 --- a/packages/core/src/config/config.test.ts +++ b/packages/core/src/config/config.test.ts @@ -151,14 +151,12 @@ describe('Server Config (config.ts)', () => { apiKey: 'test-key', }; - (createContentGeneratorConfig as Mock).mockResolvedValue( - mockContentConfig, - ); + (createContentGeneratorConfig as Mock).mockReturnValue(mockContentConfig); await config.refreshAuth(authType); expect(createContentGeneratorConfig).toHaveBeenCalledWith( - MODEL, // Should be called with the original model 'gemini-pro' + config, authType, ); // Verify that contentGeneratorConfig is updated with the new model |
