mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
Session-Level Conversation History Management (#1113)
This commit is contained in:
@@ -17,6 +17,7 @@ const mockCommands: readonly SlashCommand[] = [
|
||||
name: 'test',
|
||||
description: 'A test command',
|
||||
kind: CommandKind.BUILT_IN,
|
||||
altNames: ['alias-one', 'alias-two'],
|
||||
},
|
||||
{
|
||||
name: 'hidden',
|
||||
@@ -60,4 +61,11 @@ describe('Help Component', () => {
|
||||
expect(output).toContain('visible-child');
|
||||
expect(output).not.toContain('hidden-child');
|
||||
});
|
||||
|
||||
it('should render alt names for commands when available', () => {
|
||||
const { lastFrame } = render(<Help commands={mockCommands} />);
|
||||
const output = lastFrame();
|
||||
|
||||
expect(output).toContain('/test (alias-one, alias-two)');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user