mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 19:17:48 +00:00 
			
		
		
		
	 a18d54b706
			
		
	
	a18d54b706
	
	
	
		
			
			* Chore: Enable file upload for facebook messenger * Chore: Fix attachments * Chore: Fix Specs * Fix ReplyBox file attachment logic * Set default value for message Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
		
			
				
	
	
		
			22 lines
		
	
	
		
			555 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			555 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import { isEnter, isEscape, hasPressedShift } from '../KeyboardHelpers';
 | |
| 
 | |
| describe('#KeyboardHelpers', () => {
 | |
|   describe('#isEnter', () => {
 | |
|     it('return correct values', () => {
 | |
|       expect(isEnter({ keyCode: 13 })).toEqual(true);
 | |
|     });
 | |
|   });
 | |
| 
 | |
|   describe('#isEscape', () => {
 | |
|     it('return correct values', () => {
 | |
|       expect(isEscape({ keyCode: 27 })).toEqual(true);
 | |
|     });
 | |
|   });
 | |
| 
 | |
|   describe('#hasPressedShift', () => {
 | |
|     it('return correct values', () => {
 | |
|       expect(hasPressedShift({ shiftKey: true })).toEqual(true);
 | |
|     });
 | |
|   });
 | |
| });
 |