Tests: register watchlist-history.js in script-split integrity (#831 follow-up)

The #831 watchlist work added the standalone webui/static/watchlist-history.js
(loaded in index.html) but didn't add it to NON_SPLIT_JS, so the onclick-
coverage test couldn't see its functions and failed on openWatchlistHistoryModal
referenced in the History button. Register it alongside its sibling
origin-history.js — same fix the registry comment was added for.
This commit is contained in:
BoulderBadgeDad 2026-06-09 23:17:19 -07:00
parent 931167f197
commit e16216fc2d

View file

@ -52,7 +52,8 @@ SPLIT_MODULES = [
# Other JS files that exist in static/ but are NOT part of the split
NON_SPLIT_JS = {"setup-wizard.js", "docs.js", "helper.js", "particles.js", "worker-orbs.js",
"enrichment-manager.js", "origin-history.js", "blocklist.js"}
"enrichment-manager.js", "origin-history.js", "blocklist.js",
"watchlist-history.js"}
# Pre-existing duplicate helper functions that lived in the original monolith.
# In a plain <script> context the last-loaded declaration wins. These are NOT