mirror of
https://github.com/Unleash/unleash.git
synced 2025-10-18 11:14:57 +02:00
test: fix failing test
This commit is contained in:
parent
c825c58db8
commit
ef32f39f7c
@ -9,10 +9,27 @@ class ResizeObserver {
|
|||||||
disconnect() {}
|
disconnect() {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class IntersectionObserver {
|
||||||
|
root: any;
|
||||||
|
rootMargin: any;
|
||||||
|
thresholds: any;
|
||||||
|
|
||||||
|
observe() {}
|
||||||
|
unobserve() {}
|
||||||
|
disconnect() {}
|
||||||
|
takeRecords() {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!window.ResizeObserver) {
|
if (!window.ResizeObserver) {
|
||||||
window.ResizeObserver = ResizeObserver;
|
window.ResizeObserver = ResizeObserver;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!window.IntersectionObserver) {
|
||||||
|
window.IntersectionObserver = IntersectionObserver;
|
||||||
|
}
|
||||||
|
|
||||||
process.env.TZ = 'UTC';
|
process.env.TZ = 'UTC';
|
||||||
|
|
||||||
const errorsToIgnore = [
|
const errorsToIgnore = [
|
||||||
|
Loading…
Reference in New Issue
Block a user