mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	feat: Add chatwoot:error sdk event (#3998)
				
					
				
			This commit is contained in:
		@@ -3,7 +3,7 @@ import { dispatchWindowEvent } from '../CustomEventHelper';
 | 
			
		||||
describe('dispatchWindowEvent', () => {
 | 
			
		||||
  it('dispatches correct event', () => {
 | 
			
		||||
    window.dispatchEvent = jest.fn();
 | 
			
		||||
    dispatchWindowEvent('chatwoot:ready');
 | 
			
		||||
    dispatchWindowEvent({ eventName: 'chatwoot:ready' });
 | 
			
		||||
    expect(dispatchEvent).toHaveBeenCalled();
 | 
			
		||||
  });
 | 
			
		||||
});
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user