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.
		
		
		
		
		
			
		
			
				
	
	
		
			20 lines
		
	
	
		
			615 B
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			20 lines
		
	
	
		
			615 B
		
	
	
	
		
			TypeScript
		
	
| import { describe, it, expect } from 'bun:test';
 | |
| import { code, section, bullets } from '../../../src/utils/formatting';
 | |
| 
 | |
| describe('utils/formatting helpers', () => {
 | |
|   it('code envuelve en backticks', () => {
 | |
|     expect(code('abc')).toBe('`abc`');
 | |
|     expect(code('')).toBe('``');
 | |
|   });
 | |
| 
 | |
|   it('section devuelve mayúsculas en negrita', () => {
 | |
|     expect(section('Comandos básicos')).toBe('*COMANDOS BÁSICOS*');
 | |
|     expect(section('web')).toBe('*WEB*');
 | |
|   });
 | |
| 
 | |
|   it('bullets genera lista con guiones', () => {
 | |
|     expect(bullets(['uno', 'dos'])).toBe('- uno\n- dos');
 | |
|     expect(bullets([])).toBe('');
 | |
|   });
 | |
| });
 |