strapi/packages/admin-test-utils/lib/mocks/IntersectionObserver.js
soupette e5065a5139 Add tests
Signed-off-by: soupette <cyril@strapi.io>
2021-08-23 13:13:24 +02:00

16 lines
334 B
JavaScript

'use strict';
class IntersectionObserverMock {
constructor() {
this.root = null;
this.rootMargin = '';
this.thresholds = [];
this.disconnect = () => null;
this.observe = () => null;
this.takeRecords = () => [];
this.unobserve = () => null;
}
}
global.IntersectionObserver = IntersectionObserverMock;