This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const event_one = new Event('event_one'); | |
const event_two = new Event('event_two'); | |
const dispatch() => () => document.dispatchEvent(event_two); | |
describe('test dispatch', () => { | |
it('should dispatch event one', () => { | |
document.dispatchEvent = jest.fn(); | |
dispatch(); |