mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 16:02:26 +00:00
tests/unit/searchFilters.test.mjs fed author:abc123 and expected authorPubkeys === ["abc123"] with zero errors. The author filter now runs values through normalizeAuthorValues (searchFilters.js): it accepts a 64-char hex pubkey or a decodable npub1 and DROPS anything else (recording an error), because videos carry HEX pubkeys and npub authors otherwise matched nothing. "abc123" is neither, so it is correctly dropped → authorPubkeys empty + an error, contradicting this happy-path test. Equally-strict spec_correction: use a valid 64-hex author so the test exercises the intended normalization. Verified: # pass 4 # fail 0. This was the LAST failure in a full per-file scan of all 392 test files (the fail-fast runner had been surfacing them one at a time). Co-Authored-By: Claude Opus 4.8 <[email protected]>