mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 16:02:26 +00:00
- The `setup-localstorage.mjs` test helper polyfills `ResizeObserver` on `globalThis`, which prevented `HashtagStripHelper` from falling back to `window.resize` logic during testing. - Updated `tests/ui/components/hashtagStripHelper.test.mjs` to temporarily unset `globalThis.ResizeObserver` during tests that verify fallback behavior. - Ensures the component correctly detects the absence of `ResizeObserver` and falls back to `requestAnimationFrame` or `setTimeout` mechanisms. Co-authored-by: PR0M3TH3AN <[email protected]>
7 lines
218 B
JavaScript
7 lines
218 B
JavaScript
import test from "node:test";
|
|
import assert from "node:assert/strict";
|
|
|
|
test("check if ResizeObserver exists on globalThis", () => {
|
|
console.log("globalThis.ResizeObserver:", typeof globalThis.ResizeObserver);
|
|
});
|