Skip to content

Instantly share code, notes, and snippets.

View millnitzluan's full-sized avatar
👹
Novice Vim user ☕

Luan Millnitz millnitzluan

👹
Novice Vim user ☕
View GitHub Profile
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();