mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-21 09:17:53 +00:00
Session-Level Conversation History Management (#1113)
This commit is contained in:
@@ -110,6 +110,9 @@ describe('useSlashCommandProcessor', () => {
|
||||
const mockSetQuittingMessages = vi.fn();
|
||||
|
||||
const mockConfig = makeFakeConfig({});
|
||||
mockConfig.getChatRecordingService = vi.fn().mockReturnValue({
|
||||
recordSlashCommand: vi.fn(),
|
||||
});
|
||||
const mockSettings = {} as LoadedSettings;
|
||||
|
||||
beforeEach(() => {
|
||||
@@ -305,11 +308,15 @@ describe('useSlashCommandProcessor', () => {
|
||||
|
||||
expect(childAction).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
invocation: expect.objectContaining({
|
||||
name: 'child',
|
||||
args: 'with args',
|
||||
}),
|
||||
services: expect.objectContaining({
|
||||
config: mockConfig,
|
||||
}),
|
||||
ui: expect.objectContaining({
|
||||
addItem: mockAddItem,
|
||||
addItem: expect.any(Function),
|
||||
}),
|
||||
}),
|
||||
'with args',
|
||||
|
||||
Reference in New Issue
Block a user