12ee7e5d82
* feat: Add `chatwoot:ready` event listener on window * Add specs * Rename customEventHelper.js -> CustomEventHelper.js
9 lines
279 B
JavaScript
9 lines
279 B
JavaScript
import { dispatchWindowEvent } from '../CustomEventHelper';
|
|
|
|
describe('dispatchWindowEvent', () => {
|
|
it('dispatches correct event', () => {
|
|
window.dispatchEvent = jest.fn();
|
|
dispatchWindowEvent('chatwoot:ready');
|
|
expect(dispatchEvent).toHaveBeenCalled();
|
|
});
|
|
});
|