mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-11-04 09:36:52 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			440 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			440 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import { capitalize } from '@/lib/strings';
 | 
						|
 | 
						|
describe('@/lib/strings.ts', function () {
 | 
						|
    describe('capitalize()', function () {
 | 
						|
        it('should capitalize a string', function () {
 | 
						|
            expect(capitalize('foo bar')).toBe('Foo bar');
 | 
						|
            expect(capitalize('FOOBAR')).toBe('Foobar');
 | 
						|
        });
 | 
						|
 | 
						|
        it('should handle empty strings', function () {
 | 
						|
            expect(capitalize('')).toBe('');
 | 
						|
        });
 | 
						|
    });
 | 
						|
});
 |