export const fakeEvent = () => ({
  nativeEvent: { stopImmediatePropagation() {} },
  stopPropagation() {},
  preventDefault() {},
});

export const fakeKeyDownEventForKey = (key) => ({
  ...fakeEvent(),
  key,
});

export const fakeKeyDownEvent = (eventAttribute = {}) => ({
  ...fakeEvent(),
  ...eventAttribute,
});
