mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-28 16:32:28 +00:00
Adds comprehensive unit tests for `resolveVideoPointer` in `js/utils/videoPointer.js`. The new tests cover: - Happy paths for address (a-tag) and event (e-tag) pointers. - Priority logic (dTag > videoRootId > fallbackEventId). - Input normalization (trimming, lowercasing). - Relay inclusion in pointer arrays. - Default kind handling (fallback to 30078). - Edge cases and invalid inputs returning null. This improves test coverage for core video pointer resolution utility. Co-authored-by: PR0M3TH3AN <[email protected]>