mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 11:37:58 +00:00
10 lines
294 B
JavaScript
10 lines
294 B
JavaScript
import { dispatchWindowEvent } from '../CustomEventHelper';
|
|
|
|
describe('dispatchWindowEvent', () => {
|
|
it('dispatches correct event', () => {
|
|
window.dispatchEvent = jest.fn();
|
|
dispatchWindowEvent({ eventName: 'chatwoot:ready' });
|
|
expect(dispatchEvent).toHaveBeenCalled();
|
|
});
|
|
});
|