summaryrefslogtreecommitdiffhomepage
path: root/vitest-setup.ts
diff options
context:
space:
mode:
Diffstat (limited to 'vitest-setup.ts')
-rw-r--r--vitest-setup.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/vitest-setup.ts b/vitest-setup.ts
index 10a3160..143ac96 100644
--- a/vitest-setup.ts
+++ b/vitest-setup.ts
@@ -5,12 +5,12 @@ import "fake-indexeddb/auto";
// controller uses both against the real transcript element when App mounts. Stub
// the outermost edges so component tests can render without throwing.
if (typeof Element !== "undefined" && typeof Element.prototype.scrollTo !== "function") {
- Element.prototype.scrollTo = () => {};
+ Element.prototype.scrollTo = () => {};
}
if (typeof globalThis.ResizeObserver === "undefined") {
- globalThis.ResizeObserver = class {
- observe(): void {}
- unobserve(): void {}
- disconnect(): void {}
- };
+ globalThis.ResizeObserver = class {
+ observe(): void {}
+ unobserve(): void {}
+ disconnect(): void {}
+ };
}