mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-05 07:10:55 +00:00
remove test case
This commit is contained in:
parent
a32ab3a58f
commit
b4d2ba2a56
2 changed files with 9 additions and 31 deletions
|
|
@ -2415,11 +2415,11 @@ Other open files:
|
|||
request: vi.fn(),
|
||||
response: vi.fn(),
|
||||
};
|
||||
vi.spyOn(client['config'], 'getDisableAllHooks').mockReturnValue(false);
|
||||
vi.spyOn(client['config'], 'getMessageBus').mockReturnValue(
|
||||
vi.mocked(mockConfig.getDisableAllHooks).mockReturnValue(false);
|
||||
vi.mocked(mockConfig.getMessageBus).mockReturnValue(
|
||||
mockMessageBus as unknown as ReturnType<Config['getMessageBus']>,
|
||||
);
|
||||
vi.spyOn(client['config'], 'hasHooksForEvent').mockReturnValue(false);
|
||||
vi.mocked(mockConfig.hasHooksForEvent).mockReturnValue(false);
|
||||
|
||||
const stream = client.sendMessageStream(
|
||||
[{ text: 'Hi' }],
|
||||
|
|
@ -2439,11 +2439,11 @@ Other open files:
|
|||
request: vi.fn(),
|
||||
response: vi.fn(),
|
||||
};
|
||||
vi.spyOn(client['config'], 'getDisableAllHooks').mockReturnValue(false);
|
||||
vi.spyOn(client['config'], 'getMessageBus').mockReturnValue(
|
||||
vi.mocked(mockConfig.getDisableAllHooks).mockReturnValue(false);
|
||||
vi.mocked(mockConfig.getMessageBus).mockReturnValue(
|
||||
mockMessageBus as unknown as ReturnType<Config['getMessageBus']>,
|
||||
);
|
||||
vi.spyOn(client['config'], 'hasHooksForEvent').mockReturnValue(false);
|
||||
vi.mocked(mockConfig.hasHooksForEvent).mockReturnValue(false);
|
||||
|
||||
const stream = client.sendMessageStream(
|
||||
[{ text: 'Hi' }],
|
||||
|
|
@ -2463,11 +2463,11 @@ Other open files:
|
|||
request: vi.fn().mockResolvedValue({ modifiedPrompt: undefined }),
|
||||
response: vi.fn(),
|
||||
};
|
||||
vi.spyOn(client['config'], 'getDisableAllHooks').mockReturnValue(false);
|
||||
vi.spyOn(client['config'], 'getMessageBus').mockReturnValue(
|
||||
vi.mocked(mockConfig.getDisableAllHooks).mockReturnValue(false);
|
||||
vi.mocked(mockConfig.getMessageBus).mockReturnValue(
|
||||
mockMessageBus as unknown as ReturnType<Config['getMessageBus']>,
|
||||
);
|
||||
vi.spyOn(client['config'], 'hasHooksForEvent').mockImplementation(
|
||||
vi.mocked(mockConfig.hasHooksForEvent).mockImplementation(
|
||||
(event: string) => event === 'UserPromptSubmit',
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue