feat: Add chatwoot:error
sdk event (#3998)
This commit is contained in:
parent
3b015d4dd8
commit
7ba24b90c4
12 changed files with 59 additions and 29 deletions
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue