How to use the resize-observer-polyfill.triggerEvent function in resize-observer-polyfill

To help you get started, we’ve selected a few resize-observer-polyfill examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ZeeCoder / container-query / packages / container-query / src / Container.spec.js View on Github external
expect(() => {
    ResizeObserver.triggerEvent([
      {
        target: randomElement
      }
    ]);
  }).not.toThrow();
  expect(console.warn).toHaveBeenCalledTimes(1);