mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 20:20:57 +00:00
test(cli): add cron config mocks to test fixtures
- Add isCronDisabled mock returning true - Add getCronScheduler mock returning null This aligns test mocks with the new cron scheduler config interface. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
parent
aa4939111c
commit
c4ae7bf0cd
2 changed files with 4 additions and 0 deletions
|
|
@ -204,6 +204,8 @@ describe('useGeminiStream', () => {
|
|||
.mockReturnValue(contentGeneratorConfig),
|
||||
getMaxSessionTurns: vi.fn(() => 50),
|
||||
getArenaAgentClient: vi.fn(() => null),
|
||||
isCronDisabled: vi.fn(() => true),
|
||||
getCronScheduler: vi.fn(() => null),
|
||||
} as unknown as Config;
|
||||
mockOnDebugMessage = vi.fn();
|
||||
mockHandleSlashCommand = vi.fn().mockResolvedValue(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue