mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 12:11:09 +00:00
Refactor: Streamline memoryUtils and update slash commands (#478)
This commit is contained in:
parent
0c192555bb
commit
581709df80
4 changed files with 101 additions and 135 deletions
|
|
@ -77,13 +77,13 @@ describe('useSlashCommandProcessor', () => {
|
|||
|
||||
performAddMemoryEntrySpy.mockReset();
|
||||
(open as Mock).mockClear();
|
||||
vi.spyOn(memoryUtils, 'deleteLastMemoryEntry').mockImplementation(vi.fn());
|
||||
vi.spyOn(memoryUtils, 'deleteAllAddedMemoryEntries').mockImplementation(
|
||||
vi.fn(),
|
||||
);
|
||||
// vi.spyOn(memoryUtils, 'deleteLastMemoryEntry').mockImplementation(vi.fn());
|
||||
// vi.spyOn(memoryUtils, 'deleteAllAddedMemoryEntries').mockImplementation(
|
||||
// vi.fn(),
|
||||
// );
|
||||
|
||||
vi.mocked(memoryUtils.deleteLastMemoryEntry).mockClear();
|
||||
vi.mocked(memoryUtils.deleteAllAddedMemoryEntries).mockClear();
|
||||
// vi.mocked(memoryUtils.deleteLastMemoryEntry).mockClear();
|
||||
// vi.mocked(memoryUtils.deleteAllAddedMemoryEntries).mockClear();
|
||||
|
||||
mockProcessExit.mockClear();
|
||||
(ShowMemoryCommandModule.createShowMemoryAction as Mock).mockClear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue