mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 12:37:56 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			422 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			422 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import { generateFileName } from '../downloadHelper';
 | 
						|
 | 
						|
describe('#generateFileName', () => {
 | 
						|
  it('should generate the correct file name', () => {
 | 
						|
    expect(generateFileName({ type: 'csat', to: 1652812199 })).toEqual(
 | 
						|
      'csat-report-17-05-2022.csv'
 | 
						|
    );
 | 
						|
 | 
						|
    expect(
 | 
						|
      generateFileName({ type: 'csat', to: 1652812199, businessHours: true })
 | 
						|
    ).toEqual('csat-report-17-05-2022-business-hours.csv');
 | 
						|
  });
 | 
						|
});
 |