mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-30 18:47:51 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			403 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			403 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import { buildSearchParamsWithLocale } from '../urlParamsHelper';
 | |
| 
 | |
| jest.mock('vue', () => ({
 | |
|   config: {
 | |
|     lang: 'el',
 | |
|   },
 | |
| }));
 | |
| 
 | |
| describe('#buildSearchParamsWithLocale', () => {
 | |
|   it('returns correct search params', () => {
 | |
|     expect(buildSearchParamsWithLocale('?test=1234')).toEqual(
 | |
|       '?test=1234&locale=el'
 | |
|     );
 | |
|     expect(buildSearchParamsWithLocale('')).toEqual('?locale=el');
 | |
|   });
 | |
| });
 | 
