fix: add scrollMargin property since the IntersectionObserver has it

This commit is contained in:
Ilia Mashkov
2026-05-05 17:04:23 +03:00
parent 6bfa7ca777
commit c01fc79a3e
@@ -20,6 +20,7 @@ let mockObserverInstances: MockIntersectionObserver[] = [];
class MockIntersectionObserver implements IntersectionObserver {
root = null;
rootMargin = '';
scrollMargin = '';
thresholds: number[] = [];
readonly callbacks: Array<(entries: IntersectionObserverEntry[], observer: IntersectionObserver) => void> = [];
readonly observedElements = new Set<Element>();