@redocly/theme
Version:
Shared UI components lib
55 lines • 1.64 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MockIntersectionObserver = void 0;
class MockIntersectionObserver {
// @ts-ignore
constructor(callback, options) {
Object.defineProperty(this, "root", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "rootMargin", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "thresholds", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "observe", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "unobserve", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "disconnect", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this.root = null;
this.rootMargin = '0px';
this.thresholds = [1];
this.observe = jest.fn;
this.unobserve = jest.fn;
this.disconnect = jest.fn;
}
takeRecords() {
return [];
}
}
exports.MockIntersectionObserver = MockIntersectionObserver;
//# sourceMappingURL=MockIntersectionObserver.js.map