mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-08-03 19:12:04 +08:00
fix(test): add ResizeObserver polyfill and fix WebDAV accordion target in settings test
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
// Polyfill ResizeObserver for jsdom/happy-dom
|
||||
if (typeof globalThis.ResizeObserver === "undefined") {
|
||||
globalThis.ResizeObserver = class ResizeObserver {
|
||||
observe() {}
|
||||
unobserve() {}
|
||||
disconnect() {}
|
||||
} as unknown as typeof globalThis.ResizeObserver;
|
||||
}
|
||||
|
||||
const storage = new Map<string, string>();
|
||||
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user