mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 12:40:44 +00:00
Highlight slash commands in history (#5323)
This commit is contained in:
parent
61e382444a
commit
6f7beb414c
2 changed files with 19 additions and 3 deletions
|
|
@ -35,6 +35,18 @@ describe('<HistoryItemDisplay />', () => {
|
|||
expect(lastFrame()).toContain('Hello');
|
||||
});
|
||||
|
||||
it('renders UserMessage for "user" type with slash command', () => {
|
||||
const item: HistoryItem = {
|
||||
...baseItem,
|
||||
type: MessageType.USER,
|
||||
text: '/theme',
|
||||
};
|
||||
const { lastFrame } = render(
|
||||
<HistoryItemDisplay {...baseItem} item={item} />,
|
||||
);
|
||||
expect(lastFrame()).toContain('/theme');
|
||||
});
|
||||
|
||||
it('renders StatsDisplay for "stats" type', () => {
|
||||
const item: HistoryItem = {
|
||||
...baseItem,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue