All files utils.js

100% Statements 9/9
100% Branches 0/0
100% Functions 2/2
100% Lines 9/9
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 191x 2x   2x 2x   1x       2x 1x     2x     1x  
export const eventListenerOptionsSupported = () => {
  let supported = false;
 
  try {
    const opts = Object.defineProperty({}, 'passive', {
      get() {
        supported = true;
      }
    });
 
    window.addEventListener('test', null, opts);
    window.removeEventListener('test', null, opts);
  } catch (e) {}
 
  return supported;
}
 
export const noop = () => {};