fix(tui): add /queue command support across tui and routing
This commit is contained in:
@@ -87,6 +87,13 @@ describe('parseCommand', () => {
|
||||
expect(parseCommand('/transfer telegram')).toEqual({ type: 'transfer', target: 'telegram' });
|
||||
});
|
||||
|
||||
it('parses /queue commands', () => {
|
||||
expect(parseCommand('/queue')).toEqual({ type: 'queue', action: 'show' });
|
||||
expect(parseCommand('/queue show')).toEqual({ type: 'queue', action: 'show' });
|
||||
expect(parseCommand('/queue reset')).toEqual({ type: 'queue', action: 'reset' });
|
||||
expect(parseCommand('/queue set mode followup')).toEqual({ type: 'queue', action: 'set', args: 'mode followup' });
|
||||
});
|
||||
|
||||
it('parses regular message', () => {
|
||||
expect(parseCommand('Hello Flynn')).toEqual({ type: 'message', content: 'Hello Flynn' });
|
||||
});
|
||||
@@ -106,6 +113,7 @@ describe('getHelpText', () => {
|
||||
expect(help).toContain('/compact');
|
||||
expect(help).toContain('/usage');
|
||||
expect(help).toContain('/verbose');
|
||||
expect(help).toContain('/queue');
|
||||
expect(help).toContain('/quit');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user