You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			TypeScript
		
	
| import { describe, it, expect } from 'bun:test';
 | |
| import { getQuickHelp, getFullHelp } from '../../../src/services/messages/help';
 | |
| 
 | |
| describe('Help content (centralizado)', () => {
 | |
|   it('quick help incluye comandos básicos y /t web', () => {
 | |
|     const s = getQuickHelp();
 | |
|     expect(s).toContain('/t n');
 | |
|     expect(s).toContain('/t ver mis');
 | |
|     expect(s).toContain('/t x 26');
 | |
|     expect(s).toContain('/t configurar');
 | |
|     expect(s).toContain('/t web');
 | |
|     // Debe usar etiquetas en español para configurar
 | |
|     expect(s).toContain('diario|l-v|semanal|off');
 | |
|     expect(s).not.toContain('daily|l-v|weekly|off');
 | |
|   });
 | |
| 
 | |
|   it('full help cubre scopes de "ver", formatos de fecha y límites', () => {
 | |
|     const s = getFullHelp();
 | |
|     // Scopes
 | |
|     expect(s).toContain('/t ver grupo');
 | |
|     expect(s).toContain('/t ver mis');
 | |
|     expect(s).toContain('/t ver todos');
 | |
|     expect(s).toContain('/t ver sin');
 | |
| 
 | |
|     // Fechas
 | |
|     expect(s).toContain('YY-MM-DD');
 | |
|     expect(s).toContain('20YY');
 | |
|     expect(s).toContain('hoy');
 | |
|     expect(s).toContain('mañana');
 | |
| 
 | |
|     // Límites
 | |
|     expect(s).toContain('Máx. 10');
 | |
| 
 | |
|     // Configuración en español
 | |
|     expect(s).toContain('diario|l-v|semanal|off');
 | |
|     expect(s).not.toContain('daily|l-v|weekly|off');
 | |
|   });
 | |
| });
 |