mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 19:38:23 +00:00 
			
		
		
		
	Backport #27102 by @silverwind Enable [globals](https://vitest.dev/config/#globals) in vitest, reducing the noise in test files. Co-authored-by: silverwind <me@silverwind.io>
		
			
				
	
	
		
			7 lines
		
	
	
		
			201 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			201 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import {pathEscapeSegments} from './url.js';
 | |
| 
 | |
| test('pathEscapeSegments', () => {
 | |
|   expect(pathEscapeSegments('a/b/c')).toEqual('a/b/c');
 | |
|   expect(pathEscapeSegments('a/b/ c')).toEqual('a/b/%20c');
 | |
| });
 |